Class: Kumogata2::Plugin::Ruby
- Inherits:
-
Object
- Object
- Kumogata2::Plugin::Ruby
- Defined in:
- lib/kumogata/template/ext/kumogata.rb
Instance Method Summary collapse
Instance Method Details
#parse(str) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/kumogata/template/ext/kumogata.rb', line 42 def parse(str) str = <<EOS template do #{str} end EOS context = Kumogata2::Plugin::Ruby::Context.new(@options) context.instance_eval(str, @options.path_or_url) @post = context.instance_variable_get(:@_post) context.instance_variable_get(:@_template) end |