Class: EacTemplates::VariableProviders::Generic
- Inherits:
-
Base
- Object
- Base
- EacTemplates::VariableProviders::Generic
show all
- Defined in:
- lib/eac_templates/variable_providers/generic.rb
Instance Attribute Summary
Attributes inherited from Base
#source
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #variable_value
Class Method Details
.accept?(variables_source) ⇒ Boolean
9
10
11
|
# File 'lib/eac_templates/variable_providers/generic.rb', line 9
def accept?(variables_source)
variables_source.is_a?(::Object)
end
|
Instance Method Details
#variable_exist?(name) ⇒ Boolean
14
15
16
|
# File 'lib/eac_templates/variable_providers/generic.rb', line 14
def variable_exist?(name)
source.respond_to?(name)
end
|
#variable_fetch(name) ⇒ Object
18
19
20
|
# File 'lib/eac_templates/variable_providers/generic.rb', line 18
def variable_fetch(name)
source.send(name)
end
|