Skip to content

Commit

Permalink
chore: refactor inspect method
Browse files Browse the repository at this point in the history
- remove time from inspect method of Event class
- remove delta from to_s method of GestureRecord class
  • Loading branch information
iberianpig committed Jun 8, 2024
1 parent a20ae13 commit 90e24b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/fusuma/plugin/events/event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize(tag:, record:, time: Time.now)
end

def inspect
"time: #{time}, tag: #{tag}, record: #{record}"
"tag: #{tag}, record: #{record}"
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/fusuma/plugin/events/records/gesture_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def initialize(status:, gesture:, finger:, delta:)
end

def to_s
"#{@gesture}, #{@finger}, #{@status}, #{@delta}"
"#{@gesture}, Finger: #{@finger}, Status: #{@status}"
end
end
end
Expand Down

0 comments on commit 90e24b6

Please sign in to comment.