Class: SimpleTemplater::FlatBuilder

Inherits:
Builder
  • Object
show all
Defined in:
lib/simple-templater/builder.rb

Overview

Since:

  • 0.0.3

Instance Attribute Summary collapse

Attributes inherited from Builder

#context

Instance Method Summary collapse

Methods inherited from Builder

create

Constructor Details

#initialize(source, target, context = Hash.new) ⇒ FlatBuilder

Returns a new instance of FlatBuilder.

Since:

  • 0.0.3



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.expand_path(File.join(source, ".."))
end

Instance Attribute Details

#sourceObject (readonly)

Since:

  • 0.0.3



124
125
126
# File 'lib/simple-templater/builder.rb', line 124

def source
  @source
end

#targetObject (readonly)

Since:

  • 0.0.3



124
125
126
# File 'lib/simple-templater/builder.rb', line 124

def target
  @target
end

Instance Method Details

#createObject

Since:

  • 0.0.3



130
131
132
# File 'lib/simple-templater/builder.rb', line 130

def create
  proceed(self.source, self.target)
end