Class: Miyano::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/miyano/builder.rb,
lib/miyano/build/bear.rb,
lib/miyano/build/html.rb,
lib/miyano/build/tags.rb,
lib/miyano/build/index.rb,
lib/miyano/build/default_css.rb

Instance Method Summary collapse

Constructor Details

#initializeBuilder

Returns a new instance of Builder.



10
11
12
# File 'lib/miyano/builder.rb', line 10

def initialize
  @site = Site.new
end

Instance Method Details

#build_the_worldObject



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/miyano/builder.rb', line 14

def build_the_world
  # post
  ["bear","html"].each do |attr|
    send "build_#{attr}"
  end

  # layout
  ["default_css", "index", "tags"].each do |attr|
    send "build_#{attr}"
  end
end