Class: Keyremac::KeyToKey

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

Overview

autogen

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



28
29
30
# File 'lib/keyremac/base.rb', line 28

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



28
29
30
# File 'lib/keyremac/base.rb', line 28

def to
  @to
end

Instance Method Details

#dump(xml) ⇒ Object



36
37
38
39
# File 'lib/keyremac/dump.rb', line 36

def dump(xml)
  seqs = [from, *to].map{ |k| k.dump(xml) }.join(', ')
  xml.autogen "__KeyToKey__ #{seqs}"
end