Class: Rubydex::Comment

Inherits:
Object
  • Object
show all
Defined in:
lib/rubydex/comment.rb,
ext/rubydex/definition.c

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(string:, location:) ⇒ Comment

: (?string: String, ?location: Location) -> void



12
13
14
15
# File 'lib/rubydex/comment.rb', line 12

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

Instance Attribute Details

#locationObject (readonly)

: Location



9
10
11
# File 'lib/rubydex/comment.rb', line 9

def location
  @location
end

#stringObject (readonly)

: String



6
7
8
# File 'lib/rubydex/comment.rb', line 6

def string
  @string
end