Class: Solargraph::Parser::Snippet
- Inherits:
-
Object
- Object
- Solargraph::Parser::Snippet
- Defined in:
- lib/solargraph/parser/snippet.rb
Instance Attribute Summary collapse
-
#range ⇒ Object
readonly
Returns the value of attribute range.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(range, text) ⇒ Snippet
constructor
A new instance of Snippet.
Constructor Details
#initialize(range, text) ⇒ Snippet
Returns a new instance of Snippet.
7 8 9 10 |
# File 'lib/solargraph/parser/snippet.rb', line 7 def initialize range, text @range = range @text = text end |
Instance Attribute Details
#range ⇒ Object (readonly)
Returns the value of attribute range.
4 5 6 |
# File 'lib/solargraph/parser/snippet.rb', line 4 def range @range end |
#text ⇒ Object (readonly)
Returns the value of attribute text.
5 6 7 |
# File 'lib/solargraph/parser/snippet.rb', line 5 def text @text end |