Class: WMLAction::Tag::Action

Inherits:
Struct
  • Object
show all
Defined in:
lib/wml_action/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject

Returns the value of attribute action

Returns:

  • (Object)

    the current value of action



22
23
24
# File 'lib/wml_action/tag.rb', line 22

def action
  @action
end

#objectObject

Returns the value of attribute object

Returns:

  • (Object)

    the current value of object



22
23
24
# File 'lib/wml_action/tag.rb', line 22

def object
  @object
end

Instance Method Details

#to_s(indent = 0, dummy = 0) ⇒ Object



23
24
25
# File 'lib/wml_action/tag.rb', line 23

def to_s(indent=0, dummy=0)
  "#{action} #{object.to_s(indent,0)}"
end