Class: Keyremac::Autogen::KeyToConsumer

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



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

def from
  @from
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



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

def to
  @to
end

Instance Method Details

#dump(xml) ⇒ Object



46
47
48
# File 'lib/keyremac/dump.rb', line 46

def dump(xml)
  xml.autogen "__KeyToConsumer__ #{from.dump(xml)}, #{to.dump(xml)}"
end