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

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#char (rw)

[ GitHub ]

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

Key = Struct.new(:char, :combined_char, :with_meta)

#combined_char (rw)

[ GitHub ]

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

Key = Struct.new(:char, :combined_char, :with_meta)

#with_meta (rw)

[ GitHub ]

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

Key = Struct.new(:char, :combined_char, :with_meta)

Instance Method Details

#match?(sym) ⇒ Boolean

For dialog_proc key.match?(dialog.name)

[ GitHub ]

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

def match?(sym)
  combined_char.is_a?(Symbol) && combined_char == sym
end