Class: Grasshopper::Mock::MessageHeard

Inherits:
Struct
  • Object
show all
Defined in:
lib/grasshopper/mock.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



45
46
47
# File 'lib/grasshopper/mock.rb', line 45

def args
  @args
end

#messageObject

Returns the value of attribute message

Returns:

  • (Object)

    the current value of message



45
46
47
# File 'lib/grasshopper/mock.rb', line 45

def message
  @message
end

Instance Method Details

#to_sObject



46
47
48
# File 'lib/grasshopper/mock.rb', line 46

def to_s
  "#{self.message}(#{self.args.join(", ")})"
end