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.



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

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

Instance Attribute Details

#__hsh__Object (readonly)

Returns the value of attribute __hsh__.



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

def __hsh__
  @__hsh__
end

Instance Method Details

#__run__Object



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

def __run__
  instance_eval @__str
end

#to_hashObject



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

def to_hash
  @__hsh__
end