Class: Reline::Key
- Inherits:
-
Struct
- Object
- Struct
- Reline::Key
- Defined in:
- lib/reline.rb
Overview
EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }
Instance Attribute Summary collapse
-
#char ⇒ Object
Returns the value of attribute char.
-
#method_symbol ⇒ Object
Returns the value of attribute method_symbol.
-
#unused_boolean ⇒ Object
Returns the value of attribute unused_boolean.
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
22 23 24 |
# File 'lib/reline.rb', line 22 def char @char end |
#method_symbol ⇒ Object
Returns the value of attribute method_symbol
22 23 24 |
# File 'lib/reline.rb', line 22 def method_symbol @method_symbol end |
#unused_boolean ⇒ Object
Returns the value of attribute unused_boolean
22 23 24 |
# File 'lib/reline.rb', line 22 def unused_boolean @unused_boolean end |
Instance Method Details
#match?(sym) ⇒ Boolean
For dialog_proc ‘key.match?(dialog.name)`
24 25 26 |
# File 'lib/reline.rb', line 24 def match?(sym) method_symbol && method_symbol == sym end |