Class: Awestruct::Site
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#dir ⇒ Object
readonly
Returns the value of attribute dir.
-
#engine ⇒ Object
readonly
Returns the value of attribute engine.
-
#layouts ⇒ Object
readonly
Returns the value of attribute layouts.
-
#output_dir ⇒ Object
readonly
Returns the value of attribute output_dir.
-
#pages ⇒ Object
readonly
Returns the value of attribute pages.
-
#tmp_dir ⇒ Object
readonly
Returns the value of attribute tmp_dir.
Instance Method Summary collapse
-
#initialize(engine, config) ⇒ Site
constructor
A new instance of Site.
- #inspect ⇒ Object
- #load_page(path) ⇒ Object
Methods included from AStructMixin
#[], #cascade_for_nils!, extended, #key?, #method_missing, #transform_entry
Constructor Details
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Awestruct::AStructMixin
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
17 18 19 |
# File 'lib/awestruct/site.rb', line 17 def config @config end |
#dir ⇒ Object (readonly)
Returns the value of attribute dir.
10 11 12 |
# File 'lib/awestruct/site.rb', line 10 def dir @dir end |
#engine ⇒ Object (readonly)
Returns the value of attribute engine.
18 19 20 |
# File 'lib/awestruct/site.rb', line 18 def engine @engine end |
#layouts ⇒ Object (readonly)
Returns the value of attribute layouts.
15 16 17 |
# File 'lib/awestruct/site.rb', line 15 def layouts @layouts end |
#output_dir ⇒ Object (readonly)
Returns the value of attribute output_dir.
11 12 13 |
# File 'lib/awestruct/site.rb', line 11 def output_dir @output_dir end |
#pages ⇒ Object (readonly)
Returns the value of attribute pages.
14 15 16 |
# File 'lib/awestruct/site.rb', line 14 def pages @pages end |
#tmp_dir ⇒ Object (readonly)
Returns the value of attribute tmp_dir.
12 13 14 |
# File 'lib/awestruct/site.rb', line 12 def tmp_dir @tmp_dir end |
Instance Method Details
#inspect ⇒ Object
28 29 30 |
# File 'lib/awestruct/site.rb', line 28 def inspect "Site{:dir=>#{dir}}" end |
#load_page(path) ⇒ Object
44 45 46 |
# File 'lib/awestruct/site.rb', line 44 def load_page(path) engine.load_path( self, path ) end |