Sha256: 153884ebb1d91403db8b94641c93c345da322555587a5a0aa5970abf14ba41be
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
require 'ronin/templates/template' class ExampleTemplate include Ronin::Templates::Template def enter_example_template(&block) enter_template(File.join('templates','example.erb'),&block) end def enter_relative_template(&block) enter_template(File.join('templates','example.erb')) do |path| enter_template('_relative.erb',&block) end end def enter_missing_template(&block) enter_template('totally_missing.erb',&block) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ronin-0.3.0 | spec/templates/classes/example_template.rb |