Class: SimpleTemplater::FlatBuilder
- Defined in:
- lib/simple-templater/builder.rb
Overview
Instance Attribute Summary collapse
- #source ⇒ Object readonly
- #target ⇒ Object readonly
Attributes inherited from Builder
Instance Method Summary collapse
- #create ⇒ Object
-
#initialize(source, target, context = Hash.new) ⇒ FlatBuilder
constructor
A new instance of FlatBuilder.
Methods inherited from Builder
Constructor Details
#initialize(source, target, context = Hash.new) ⇒ FlatBuilder
Returns a new instance of FlatBuilder.
125 126 127 128 |
# File 'lib/simple-templater/builder.rb', line 125 def initialize(source, target, context = Hash.new) @source, @target, @context = source, target, context @content_dir = File.(File.join(source, "..")) end |
Instance Attribute Details
#source ⇒ Object (readonly)
124 125 126 |
# File 'lib/simple-templater/builder.rb', line 124 def source @source end |
#target ⇒ Object (readonly)
124 125 126 |
# File 'lib/simple-templater/builder.rb', line 124 def target @target end |
Instance Method Details
#create ⇒ Object
130 131 132 |
# File 'lib/simple-templater/builder.rb', line 130 def create proceed(self.source, self.target) end |