Class: Reline::Key
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
Struct
|
|
Instance Chain:
self,
Struct
|
|
Inherits: |
Struct
|
Defined in: | lib/reline.rb |
Instance Attribute Summary
- #char rw
- #combined_char rw
- #with_meta rw
Instance Method Summary
-
#match?(sym) ⇒ Boolean
For dialog_proc
key.match?(dialog.name)
.
Instance Attribute Details
#char (rw)
[ GitHub ]# File 'lib/reline.rb', line 21
Key = Struct.new(:char, :combined_char, : )
#combined_char (rw)
[ GitHub ]# File 'lib/reline.rb', line 21
Key = Struct.new(:char, :combined_char, : )
#with_meta (rw)
[ GitHub ]# File 'lib/reline.rb', line 21
Key = Struct.new(:char, :combined_char, : )
Instance Method Details
#match?(sym) ⇒ Boolean
For dialog_proc key.match?(dialog.name)
# File 'lib/reline.rb', line 23
def match?(sym) combined_char.is_a?(Symbol) && combined_char == sym end