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.
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/jade-ruby/config.rb', line 21 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.
12 13 14 |
# File 'lib/jade-ruby/config.rb', line 12 def cache @cache end |
#client ⇒ Object
Returns the value of attribute client.
14 15 16 |
# File 'lib/jade-ruby/config.rb', line 14 def client @client end |
#compile_debug ⇒ Object
Returns the value of attribute compile_debug.
11 12 13 |
# File 'lib/jade-ruby/config.rb', line 11 def compile_debug @compile_debug end |
#debug ⇒ Object
Returns the value of attribute debug.
10 11 12 |
# File 'lib/jade-ruby/config.rb', line 10 def debug @debug end |
#doctype ⇒ Object
Returns the value of attribute doctype.
7 8 9 |
# File 'lib/jade-ruby/config.rb', line 7 def doctype @doctype end |
#extension ⇒ Object
Returns the value of attribute extension.
18 19 20 |
# File 'lib/jade-ruby/config.rb', line 18 def extension @extension end |
#filename ⇒ Object
6 7 8 |
# File 'lib/jade-ruby/config.rb', line 6 def filename @filename end |
#globals ⇒ Object
Returns the value of attribute globals.
13 14 15 |
# File 'lib/jade-ruby/config.rb', line 13 def globals @globals end |
#hierarchy ⇒ Object
Returns the value of attribute hierarchy.
19 20 21 |
# File 'lib/jade-ruby/config.rb', line 19 def hierarchy @hierarchy end |
#name ⇒ Object
Returns the value of attribute name.
15 16 17 |
# File 'lib/jade-ruby/config.rb', line 15 def name @name end |
#name_after_file ⇒ Object
Returns the value of attribute name_after_file.
16 17 18 |
# File 'lib/jade-ruby/config.rb', line 16 def name_after_file @name_after_file end |
#out ⇒ Object
Returns the value of attribute out.
17 18 19 |
# File 'lib/jade-ruby/config.rb', line 17 def out @out end |
#pretty ⇒ Object
Returns the value of attribute pretty.
8 9 10 |
# File 'lib/jade-ruby/config.rb', line 8 def pretty @pretty end |
#self ⇒ Object
Returns the value of attribute self.
9 10 11 |
# File 'lib/jade-ruby/config.rb', line 9 def self @self end |
Instance Method Details
#to_hash ⇒ Object
38 39 40 41 42 43 44 |
# File 'lib/jade-ruby/config.rb', line 38 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 |