Class: Uki::Builder
- Inherits:
-
Object
- Object
- Uki::Builder
- Defined in:
- lib/uki/builder.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
Returns the value of attribute options.
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
- #code ⇒ Object
-
#initialize(path, options = {}) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(path, options = {}) ⇒ Builder
Returns a new instance of Builder.
12 13 14 15 |
# File 'lib/uki/builder.rb', line 12 def initialize(path, = {}) @path = path @options = end |
Instance Attribute Details
#options ⇒ Object
Returns the value of attribute options.
10 11 12 |
# File 'lib/uki/builder.rb', line 10 def @options end |
#path ⇒ Object
Returns the value of attribute path.
9 10 11 |
# File 'lib/uki/builder.rb', line 9 def path @path end |
Instance Method Details
#code ⇒ Object
17 18 19 |
# File 'lib/uki/builder.rb', line 17 def code [:compress] ? compressed_code : plain_code end |