Class: Spoom::Model::Comment
- Inherits:
-
Object
- Object
- Spoom::Model::Comment
- Defined in:
- lib/spoom/model/model.rb
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
: Location.
-
#string ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#initialize(string, location) ⇒ Comment
constructor
: (String string, Location location) -> void.
Constructor Details
#initialize(string, location) ⇒ Comment
: (String string, Location location) -> void
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)
: Location
13 14 15 |
# File 'lib/spoom/model/model.rb', line 13 def location @location end |
#string ⇒ Object (readonly)
: String
10 11 12 |
# File 'lib/spoom/model/model.rb', line 10 def string @string end |