Class: Rubydex::Comment
- Inherits:
-
Object
- Object
- Rubydex::Comment
- Defined in:
- lib/rubydex/comment.rb,
ext/rubydex/definition.c
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
12 13 14 15 |
# File 'lib/rubydex/comment.rb', line 12 def initialize(string:, location:) @string = string @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
: Location
9 10 11 |
# File 'lib/rubydex/comment.rb', line 9 def location @location end |
#string ⇒ Object (readonly)
: String
6 7 8 |
# File 'lib/rubydex/comment.rb', line 6 def string @string end |