Skip to content

Commit

Permalink
Add Reline::Key#== as an alias to Reline::Key#match?
Browse files Browse the repository at this point in the history
  • Loading branch information
aycabta committed Sep 5, 2021
1 parent 5f1141b commit 1fc3276
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/reline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def match?(key)
false
end
end
alias_method :==, :match?
end
CursorPos = Struct.new(:x, :y)
DialogRenderInfo = Struct.new(:pos, :contents, :pointer, :bg_color, :width, :height, :scrollbar, keyword_init: true)
Expand Down

0 comments on commit 1fc3276

Please sign in to comment.