Class: Keyremac::Autogen::KeyToKey
- Inherits:
-
Struct
- Object
- Struct
- Keyremac::Autogen::KeyToKey
- Defined in:
- lib/keyremac/base.rb,
lib/keyremac/dump.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
25 26 27 |
# File 'lib/keyremac/base.rb', line 25 def from @from end |
#to ⇒ Object
Returns the value of attribute to
25 26 27 |
# File 'lib/keyremac/base.rb', line 25 def to @to end |
Instance Method Details
#dump(xml) ⇒ Object
39 40 41 42 |
# File 'lib/keyremac/dump.rb', line 39 def dump(xml) seqs = [from, *to].map{ |k| k.dump(xml) }.join(', ') xml.autogen "__KeyToKey__ #{seqs}" end |