Class: Liquidscript::ICR::Sexp
- Inherits:
-
Object
- Object
- Liquidscript::ICR::Sexp
- Defined in:
- lib/liquidscript/icr/sexp.rb
Instance Method Summary collapse
-
#initialize(compiler) ⇒ Sexp
constructor
A new instance of Sexp.
- #output ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(compiler) ⇒ Sexp
Returns a new instance of Sexp.
9 10 11 12 |
# File 'lib/liquidscript/icr/sexp.rb', line 9 def initialize(compiler) @compiler = compiler @depth = 0 end |
Instance Method Details
#output ⇒ Object
14 15 16 |
# File 'lib/liquidscript/icr/sexp.rb', line 14 def output out(@compiler).strip end |
#to_s ⇒ Object
18 19 20 |
# File 'lib/liquidscript/icr/sexp.rb', line 18 def to_s output end |