Class: Uki::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/uki/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options = {})
  @path = path
  @options = options
end

Instance Attribute Details

#optionsObject

Returns the value of attribute options.



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

def options
  @options
end

#pathObject

Returns the value of attribute path.



9
10
11
# File 'lib/uki/builder.rb', line 9

def path
  @path
end

Instance Method Details

#codeObject



17
18
19
# File 'lib/uki/builder.rb', line 17

def code
  options[:compress] ? compressed_code : plain_code
end