PageRenderTime 40ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/tools/drillbit/Resources/tests/ruby/markaby/lib/markaby/template.rb

http://github.com/appcelerator/titanium_desktop
Ruby | 12 lines | 12 code | 0 blank | 0 comment | 0 complexity | ec46738d0ffdbb8c2dce4fa6ed2fb2be MD5 | raw file
Possible License(s): Apache-2.0
  1. module Markaby
  2. class Template
  3. def initialize(template)
  4. @template = template
  5. end
  6. def render(*args)
  7. output = Builder.new(*args)
  8. output.instance_eval @template
  9. return output.to_s
  10. end
  11. end
  12. end