Class: PryInline::Parser
- Inherits:
-
Ripper
- Object
- Ripper
- PryInline::Parser
- Defined in:
- lib/pry-inline/parser.rb
Instance Attribute Summary collapse
-
#ret ⇒ Object
readonly
Returns the value of attribute ret.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#ret ⇒ Object (readonly)
Returns the value of attribute ret.
5 6 7 |
# File 'lib/pry-inline/parser.rb', line 5 def ret @ret end |
Class Method Details
.sexp(src, filename = '-', lineno = 1) ⇒ Object
7 8 9 10 |
# File 'lib/pry-inline/parser.rb', line 7 def self.sexp(src, filename = '-', lineno = 1) parser = Parser.new(src, filename, lineno) parser.parse || parser.ret end |
Instance Method Details
#compile_error(_) ⇒ Object
31 32 33 |
# File 'lib/pry-inline/parser.rb', line 31 def compile_error(_) @ret end |
#on_parse_error(_) ⇒ Object
35 36 37 |
# File 'lib/pry-inline/parser.rb', line 35 def on_parse_error(_) @ret end |