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
17
18
19
20
|
# File 'lib/squasher/config.rb', line 17
def method_missing(*args)
@error = true
self
end
|
Instance Method Details
#const_missing(*args) ⇒ Object
22
23
24
25
|
# File 'lib/squasher/config.rb', line 22
def const_missing(*args)
@error = true
self
end
|
#inspect ⇒ Object
31
32
33
|
# File 'lib/squasher/config.rb', line 31
def inspect
''
end
|
#process(path) ⇒ Object
10
11
12
13
14
15
|
# File 'lib/squasher/config.rb', line 10
def process(path)
@error = false
str = YAML.load(ERB.new(File.read(path)).result(binding))
[str, @error]
end
|
#to_s ⇒ Object
27
28
29
|
# File 'lib/squasher/config.rb', line 27
def to_s
''
end
|