Class: Laplus::Parser

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

Instance Method Summary collapse

Instance Method Details

#parse(code) ⇒ Object



7
8
9
10
11
# File 'lib/laplus/parser.rb', line 7

def parse(code)
  parser = Ripper.new(code)
  parser.parse
  !parser.error?
end