Module: Squasher::Config::Render
- Extended by:
- Render
- Included in:
- Render
- Defined in:
- lib/squasher/config.rb
Instance Method Summary
collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(*args) ⇒ Object
19
20
21
22
|
# File 'lib/squasher/config.rb', line 19
def method_missing(*args)
@error = true
self
end
|
Instance Method Details
#const_missing(*args) ⇒ Object
24
25
26
27
|
# File 'lib/squasher/config.rb', line 24
def const_missing(*args)
@error = true
self
end
|
#inspect ⇒ Object
33
34
35
|
# File 'lib/squasher/config.rb', line 33
def inspect
''
end
|
#process(path) ⇒ Object
12
13
14
15
16
17
|
# File 'lib/squasher/config.rb', line 12
def process(path)
@error = false
str = YAML.load(ERB.new(File.read(path)).result(binding))
[str, @error]
end
|
#to_s ⇒ Object
29
30
31
|
# File 'lib/squasher/config.rb', line 29
def to_s
''
end
|