Class: Yuimaru::Message
- Inherits:
-
Struct
- Object
- Struct
- Yuimaru::Message
- Defined in:
- lib/yuimaru/message.rb
Instance Attribute Summary collapse
-
#from ⇒ Object
Returns the value of attribute from.
-
#name ⇒ Object
Returns the value of attribute name.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#from ⇒ Object
Returns the value of attribute from
2 3 4 |
# File 'lib/yuimaru/message.rb', line 2 def from @from end |
#name ⇒ Object
Returns the value of attribute name
2 3 4 |
# File 'lib/yuimaru/message.rb', line 2 def name @name end |
#to ⇒ Object
Returns the value of attribute 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 |