123456789_123456789_123456789_123456789_123456789_

Class: Reline::Key

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Struct
Instance Chain:
self, Struct
Inherits: Struct
  • Object
Defined in: lib/reline.rb

Overview

EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }

Instance Attribute Summary

  • #char rw

    EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }

  • #method_symbol rw

    EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }

  • #unused_boolean rw

    EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }

Instance Method Summary

Instance Attribute Details

#char (rw)

EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }

[ GitHub ]

  
# File 'lib/reline.rb', line 22

Key = Struct.new(:char, :method_symbol, :unused_boolean)

#method_symbol (rw)

EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }

[ GitHub ]

  
# File 'lib/reline.rb', line 22

Key = Struct.new(:char, :method_symbol, :unused_boolean)

#unused_boolean (rw)

EOF key: { char: nil, method_symbol: nil } Other key: { char: String, method_symbol: Symbol }

[ GitHub ]

  
# File 'lib/reline.rb', line 22

Key = Struct.new(:char, :method_symbol, :unused_boolean)

Instance Method Details

#match?(sym) ⇒ Boolean

For dialog_proc key.match?(dialog.name)

[ GitHub ]

  
# File 'lib/reline.rb', line 24

def match?(sym)
  method_symbol && method_symbol == sym
end