Class: Micdrop::SubRecordContext
- Inherits:
-
RecordContext
- Object
- RecordContext
- Micdrop::SubRecordContext
- Extended by:
- Forwardable
- Defined in:
- lib/micdrop/record_context.rb
Overview
Record context for sub-records
Instance Attribute Summary
Attributes inherited from RecordContext
Instance Method Summary collapse
-
#initialize(item_context, parent_record_context) ⇒ SubRecordContext
constructor
A new instance of SubRecordContext.
Methods inherited from RecordContext
#at_css, #at_xpath, #collect_format_string, #collect_kv, #collect_list, #css, #each_subrecord, #index, #passthru, #skip, #static, #stop, #take, #take_content, #take_dig, #take_node_name, #take_whole, #try_take, #xpath
Constructor Details
#initialize(item_context, parent_record_context) ⇒ SubRecordContext
Returns a new instance of SubRecordContext.
216 217 218 219 220 |
# File 'lib/micdrop/record_context.rb', line 216 def initialize(item_context, parent_record_context) @item_context = item_context @parent_record_context = parent_record_context @record = item_context.value end |