Class: Spoom::Model::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/spoom/model/model.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#locationObject (readonly)

: Location



13
14
15
# File 'lib/spoom/model/model.rb', line 13

def location
  @location
end

#stringObject (readonly)

: String



10
11
12
# File 'lib/spoom/model/model.rb', line 10

def string
  @string
end