class Riffer::Rig::Terminal::Key
Attributes
name
[R]
Symbol
@dynamic name, text
text
[R]
String?
Public Class Methods
(Symbol name, ?String? text) → void
Source
# File lib/riffer/rig/terminal/key.rb, line 11 def initialize(name, text = nil) @name = name @text = text freeze end
@rbs name: Symbol @rbs text: String? @rbs return: void
Public Instance Methods
(untyped other) → bool
Source
# File lib/riffer/rig/terminal/key.rb, line 19 def ==(other) other.class == self.class && other.to_h == to_h end
@rbs other: untyped @rbs return: bool
(untyped other) → bool
Source
# File lib/riffer/rig/terminal/key.rb, line 30 def eql?(other) self == other end
@rbs other: untyped @rbs return: bool
() → Integer
Source
# File lib/riffer/rig/terminal/key.rb, line 24 def hash [self.class, to_h].hash end
@rbs return: Integer
() → Hash[Symbol, untyped]
Source
# File lib/riffer/rig/terminal/key.rb, line 35 def to_h { name: name, text: text } end
@rbs return: Hash[Symbol, untyped]