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
21 22 23 |
# File 'lib/reline.rb', line 21 def char @char end |
#combined_char ⇒ Object
Returns the value of attribute combined_char
21 22 23 |
# File 'lib/reline.rb', line 21 def combined_char @combined_char end |
#with_meta ⇒ Object
Returns the value of attribute with_meta
21 22 23 |
# File 'lib/reline.rb', line 21 def @with_meta end |
Instance Method Details
#match?(sym) ⇒ Boolean
For dialog_proc ‘key.match?(dialog.name)`
23 24 25 |
# File 'lib/reline.rb', line 23 def match?(sym) combined_char.is_a?(Symbol) && combined_char == sym end |