Class: Liquidscript::Generator::Base
- Inherits:
-
Object
- Object
- Liquidscript::Generator::Base
- Includes:
- Replacements
- Defined in:
- lib/liquidscript/generator/base.rb,
lib/liquidscript/generator/base/dsl.rb,
lib/liquidscript/generator/base/replacements.rb
Direct Known Subclasses
Defined Under Namespace
Modules: DSL, Replacements
Instance Method Summary collapse
- #buffer ⇒ Object
- #generate ⇒ Object
-
#initialize(top) ⇒ Base
constructor
A new instance of Base.
Methods included from Replacements
Constructor Details
#initialize(top) ⇒ Base
Returns a new instance of Base.
11 12 13 |
# File 'lib/liquidscript/generator/base.rb', line 11 def initialize(top) @top = top end |
Instance Method Details
#buffer ⇒ Object
19 20 21 |
# File 'lib/liquidscript/generator/base.rb', line 19 def buffer Buffer.new end |
#generate ⇒ Object
15 16 17 |
# File 'lib/liquidscript/generator/base.rb', line 15 def generate replace(@top).to_s end |