Class: Yuimaru::Message

Inherits:
Struct
  • Object
show all
Defined in:
lib/yuimaru/message.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



2
3
4
# File 'lib/yuimaru/message.rb', line 2

def from
  @from
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



2
3
4
# File 'lib/yuimaru/message.rb', line 2

def name
  @name
end

#toObject

Returns the value of attribute to

Returns:

  • (Object)

    the current value of to



2
3
4
# File 'lib/yuimaru/message.rb', line 2

def to
  @to
end

Instance Method Details

#<<(from) ⇒ Object



3
4
5
# File 'lib/yuimaru/message.rb', line 3

def <<(from)
  self.tap {|m| m.from = from }
end

#>>(to) ⇒ Object



7
8
9
# File 'lib/yuimaru/message.rb', line 7

def >>(to)
  self.tap {|m| m.to = to }
end