Class: Dao::Messages::Message
- Inherits:
-
String
- Object
- String
- Dao::Messages::Message
- Defined in:
- lib/dao/messages.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(string, type = nil) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(string, type = nil) ⇒ Message
Returns a new instance of Message.
13 14 15 16 17 |
# File 'lib/dao/messages.rb', line 13 def initialize(string, type = nil) super("#{ string }") ensure @type = type ? "#{ type }" : nil end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
11 12 13 |
# File 'lib/dao/messages.rb', line 11 def type @type end |