Class: RecordStore::Zone::Config::TemplateContext
- Inherits:
-
Object
- Object
- RecordStore::Zone::Config::TemplateContext
- Defined in:
- lib/record_store/zone/config/implicit_record_template.rb
Class Method Summary collapse
Instance Method Summary collapse
- #fetch_binding ⇒ Object
-
#initialize(record:, current_records:) ⇒ TemplateContext
constructor
A new instance of TemplateContext.
Constructor Details
#initialize(record:, current_records:) ⇒ TemplateContext
Returns a new instance of TemplateContext.
13 14 15 16 |
# File 'lib/record_store/zone/config/implicit_record_template.rb', line 13 def initialize(record:, current_records:) @record = record @current_records = current_records end |
Class Method Details
.build(record:, current_records:) ⇒ Object
8 9 10 |
# File 'lib/record_store/zone/config/implicit_record_template.rb', line 8 def build(record:, current_records:) new(record: record, current_records: current_records) end |
Instance Method Details
#fetch_binding ⇒ Object
18 19 20 |
# File 'lib/record_store/zone/config/implicit_record_template.rb', line 18 def fetch_binding binding end |