Class: Spoom::RBS::Comment
- Inherits:
-
Object
- Object
- Spoom::RBS::Comment
- Defined in:
- lib/spoom/rbs.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
: Prism::Location.
-
#string ⇒ Object
readonly
: String.
Instance Method Summary collapse
-
#initialize(string, location) ⇒ Comment
constructor
: (String, Prism::Location) -> void.
Constructor Details
#initialize(string, location) ⇒ Comment
: (String, Prism::Location) -> void
59 60 61 62 |
# File 'lib/spoom/rbs.rb', line 59 def initialize(string, location) @string = string @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
: Prism::Location
56 57 58 |
# File 'lib/spoom/rbs.rb', line 56 def location @location end |
#string ⇒ Object (readonly)
: String
53 54 55 |
# File 'lib/spoom/rbs.rb', line 53 def string @string end |