Class: Translate::Item
- Inherits:
-
Object
- Object
- Translate::Item
- Defined in:
- lib/translate.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#new_line ⇒ Object
Returns the value of attribute new_line.
-
#translation ⇒ Object
Returns the value of attribute translation.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Item
constructor
A new instance of Item.
Constructor Details
#initialize(attributes = {}) ⇒ Item
Returns a new instance of Item.
174 175 176 177 178 |
# File 'lib/translate.rb', line 174 def initialize(attributes = {}) for k in attributes.keys self.send("#{k}=", attributes[k]) if self.respond_to?(k) end end |
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
172 173 174 |
# File 'lib/translate.rb', line 172 def description @description end |
#new_line ⇒ Object
Returns the value of attribute new_line.
172 173 174 |
# File 'lib/translate.rb', line 172 def new_line @new_line end |
#translation ⇒ Object
Returns the value of attribute translation.
172 173 174 |
# File 'lib/translate.rb', line 172 def translation @translation end |