class Strut::CallCommand

Attributes

instance[R]
property[R]
value[R]

Public Class Methods

new(id, metadata, instance, property, value) click to toggle source
Calls superclass method Strut::SlimCommand::new
# File lib/strut/slim_command.rb, line 68
def initialize(id, metadata, instance, property, value)
  super(id, metadata)
  @instance = instance
  @property = property
  @value = value
end

Public Instance Methods

command() click to toggle source
# File lib/strut/slim_command.rb, line 75
def command
  "call"
end
to_a() click to toggle source
Calls superclass method Strut::SlimCommand#to_a
# File lib/strut/slim_command.rb, line 79
def to_a
  ary = super + [@instance, @property]
  ary << @value unless @value.nil?
  ary
end
to_s() click to toggle source
# File lib/strut/slim_command.rb, line 85
def to_s
  "#{super} #{@instance}.#{@property}(#{@value})"
end