Class: Solargraph::Parser::Snippet

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/parser/snippet.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#rangeObject (readonly)

Returns the value of attribute range.



4
5
6
# File 'lib/solargraph/parser/snippet.rb', line 4

def range
  @range
end

#textObject (readonly)

Returns the value of attribute text.



5
6
7
# File 'lib/solargraph/parser/snippet.rb', line 5

def text
  @text
end