Class: Assette::Config::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/assette/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(file) ⇒ Builder

Returns a new instance of Builder.



159
160
161
162
163
# File 'lib/assette/config.rb', line 159

def initialize(file)
  @__str = File.open(file).read
  
  @__hsh__ = {}
end

Instance Attribute Details

#__hsh__Object (readonly)

Returns the value of attribute __hsh__.



158
159
160
# File 'lib/assette/config.rb', line 158

def __hsh__
  @__hsh__
end

Instance Method Details

#__run__Object



165
166
167
# File 'lib/assette/config.rb', line 165

def __run__
  instance_eval @__str
end

#to_hashObject



203
204
205
# File 'lib/assette/config.rb', line 203

def to_hash
  @__hsh__
end