Class: Spoom::Model::Comment
- Inherits:
-
Object
- Object
- Spoom::Model::Comment
- Defined in:
- lib/spoom/model/model.rb
Instance Attribute Summary collapse
- #location ⇒ Object readonly
- #string ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(string, location) ⇒ Comment
constructor
A new instance of Comment.
Constructor Details
#initialize(string, location) ⇒ Comment
Returns a new instance of Comment.
16 17 18 19 |
# File 'lib/spoom/model/model.rb', line 16 def initialize(string, location) @string = string @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
13 14 15 |
# File 'lib/spoom/model/model.rb', line 13 def location @location end |
#string ⇒ Object (readonly)
10 11 12 |
# File 'lib/spoom/model/model.rb', line 10 def string @string end |