Class: Jade::Config
- Inherits:
-
Object
- Object
- Jade::Config
- Defined in:
- lib/jade-ruby/config.rb
Instance Attribute Summary collapse
-
#cache ⇒ Object
Returns the value of attribute cache.
-
#client ⇒ Object
Returns the value of attribute client.
-
#compile_debug ⇒ Object
Returns the value of attribute compile_debug.
-
#debug ⇒ Object
Returns the value of attribute debug.
-
#doctype ⇒ Object
Returns the value of attribute doctype.
-
#extension ⇒ Object
Returns the value of attribute extension.
- #filename ⇒ Object
-
#globals ⇒ Object
Returns the value of attribute globals.
-
#hierarchy ⇒ Object
Returns the value of attribute hierarchy.
-
#name ⇒ Object
Returns the value of attribute name.
-
#name_after_file ⇒ Object
Returns the value of attribute name_after_file.
-
#out ⇒ Object
Returns the value of attribute out.
-
#pretty ⇒ Object
Returns the value of attribute pretty.
-
#self ⇒ Object
Returns the value of attribute self.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
- #to_hash ⇒ Object
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'lib/jade-ruby/config.rb', line 23 def initialize @filename = nil @doctype = nil @pretty = false @self = false @debug = false @compile_debug = false @cache = false @globals = [] @client = false @name = 'template' @name_after_file = nil @out = nil @extension = nil @hierarchy = false end |
Instance Attribute Details
#cache ⇒ Object
Returns the value of attribute cache.
14 15 16 |
# File 'lib/jade-ruby/config.rb', line 14 def cache @cache end |
#client ⇒ Object
Returns the value of attribute client.
16 17 18 |
# File 'lib/jade-ruby/config.rb', line 16 def client @client end |
#compile_debug ⇒ Object
Returns the value of attribute compile_debug.
13 14 15 |
# File 'lib/jade-ruby/config.rb', line 13 def compile_debug @compile_debug end |
#debug ⇒ Object
Returns the value of attribute debug.
12 13 14 |
# File 'lib/jade-ruby/config.rb', line 12 def debug @debug end |
#doctype ⇒ Object
Returns the value of attribute doctype.
9 10 11 |
# File 'lib/jade-ruby/config.rb', line 9 def doctype @doctype end |
#extension ⇒ Object
Returns the value of attribute extension.
20 21 22 |
# File 'lib/jade-ruby/config.rb', line 20 def extension @extension end |
#filename ⇒ Object
8 9 10 |
# File 'lib/jade-ruby/config.rb', line 8 def filename @filename end |
#globals ⇒ Object
Returns the value of attribute globals.
15 16 17 |
# File 'lib/jade-ruby/config.rb', line 15 def globals @globals end |
#hierarchy ⇒ Object
Returns the value of attribute hierarchy.
21 22 23 |
# File 'lib/jade-ruby/config.rb', line 21 def hierarchy @hierarchy end |
#name ⇒ Object
Returns the value of attribute name.
17 18 19 |
# File 'lib/jade-ruby/config.rb', line 17 def name @name end |
#name_after_file ⇒ Object
Returns the value of attribute name_after_file.
18 19 20 |
# File 'lib/jade-ruby/config.rb', line 18 def name_after_file @name_after_file end |
#out ⇒ Object
Returns the value of attribute out.
19 20 21 |
# File 'lib/jade-ruby/config.rb', line 19 def out @out end |
#pretty ⇒ Object
Returns the value of attribute pretty.
10 11 12 |
# File 'lib/jade-ruby/config.rb', line 10 def pretty @pretty end |
#self ⇒ Object
Returns the value of attribute self.
11 12 13 |
# File 'lib/jade-ruby/config.rb', line 11 def self @self end |
Instance Method Details
#to_hash ⇒ Object
40 41 42 43 44 45 46 |
# File 'lib/jade-ruby/config.rb', line 40 def to_hash i( filename doctype pretty self debug compile_debug cache globals client name name_after_file out extension hierarchy ).each_with_object({}) { |x, y| y[x] = send(x) } end |