Class: Spoom::RBS::Comment

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

Direct Known Subclasses

Annotations, Signature

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string, location) ⇒ Comment

: (String, Prism::Location) -> void



33
34
35
36
# File 'lib/spoom/rbs.rb', line 33

def initialize(string, location)
  @string = string
  @location = location
end

Instance Attribute Details

#locationObject (readonly)

: Prism::Location



30
31
32
# File 'lib/spoom/rbs.rb', line 30

def location
  @location
end

#stringObject (readonly)

: String



27
28
29
# File 'lib/spoom/rbs.rb', line 27

def string
  @string
end