Class: EacTemplates::Variables::Providers::EntriesReader
- Inherits:
-
Base
- Object
- Base
- EacTemplates::Variables::Providers::EntriesReader
show all
- Defined in:
- lib/eac_templates/variables/providers/entries_reader.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
10
11
12
|
# File 'lib/eac_templates/variables/providers/entries_reader.rb', line 10
def accept?(variables_source)
variables_source.respond_to?(:read_entry)
end
|
Instance Method Details
#variable_exist?(_name) ⇒ Boolean
15
16
17
|
# File 'lib/eac_templates/variables/providers/entries_reader.rb', line 15
def variable_exist?(_name)
true
end
|
#variable_fetch(name) ⇒ Object
19
20
21
|
# File 'lib/eac_templates/variables/providers/entries_reader.rb', line 19
def variable_fetch(name)
source.read_entry(name)
end
|