Class: RubyVM::AbstractSyntaxTree::Node

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

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object



18
19
20
21
22
23
# File 'lib/solargraph/parser/rubyvm.rb', line 18

def == other
  return false unless other.is_a?(self.class)
  here = Solargraph::Range.from_node(self)
  there = Solargraph::Range.from_node(other)
  here == there && to_sexp == other.to_sexp
end

#to_sexpObject



14
15
16
# File 'lib/solargraph/parser/rubyvm.rb', line 14

def to_sexp
  sexp self
end