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
18
19
20
21
|
# File 'lib/squasher/config.rb', line 18
def method_missing(*args)
@error = true
self
end
|
Instance Method Details
#const_missing(*args) ⇒ Object
23
24
25
26
|
# File 'lib/squasher/config.rb', line 23
def const_missing(*args)
@error = true
self
end
|
#inspect ⇒ Object
32
33
34
|
# File 'lib/squasher/config.rb', line 32
def inspect
''
end
|
#process(path) ⇒ Object
10
11
12
13
14
15
16
|
# File 'lib/squasher/config.rb', line 10
def process(path)
@error = false
opts = Gem::Version.new(Psych::VERSION).segments.first < 4 ? {} : { aliases: true }
str = YAML.load(ERB.new(File.read(path)).result(binding), **opts)
[str, @error]
end
|
#to_s ⇒ Object
28
29
30
|
# File 'lib/squasher/config.rb', line 28
def to_s
''
end
|