Class: Keyremac::Autogen::KeyToKey

Inherits:
Struct
  • Object
show all
Defined in:
lib/keyremac/base.rb,
lib/keyremac/dump.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#fromObject

Returns the value of attribute from

Returns:

  • (Object)

    the current value of from



25
26
27
# File 'lib/keyremac/base.rb', line 25

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of 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