Class: Reline::Key
- Inherits:
-
Struct
- Object
- Struct
- Reline::Key
- Defined in:
- lib/reline.rb
Instance Attribute Summary collapse
-
#char ⇒ Object
Returns the value of attribute char.
-
#combined_char ⇒ Object
Returns the value of attribute combined_char.
-
#with_meta ⇒ Object
Returns the value of attribute with_meta.
Instance Method Summary collapse
-
#match?(sym) ⇒ Boolean
For dialog_proc ‘key.match?(dialog.name)`.
Instance Attribute Details
#char ⇒ Object
Returns the value of attribute char
20 21 22 |
# File 'lib/reline.rb', line 20 def char @char end |
#combined_char ⇒ Object
Returns the value of attribute combined_char
20 21 22 |
# File 'lib/reline.rb', line 20 def combined_char @combined_char end |
#with_meta ⇒ Object
Returns the value of attribute with_meta
20 21 22 |
# File 'lib/reline.rb', line 20 def end |
Instance Method Details
#match?(sym) ⇒ Boolean
For dialog_proc ‘key.match?(dialog.name)`
22 23 24 |
# File 'lib/reline.rb', line 22 def match?(sym) combined_char.is_a?(Symbol) && combined_char == sym end |