Class: Micdrop::SubRecordContext

Inherits:
RecordContext show all
Extended by:
Forwardable
Defined in:
lib/micdrop/record_context.rb

Overview

Record context for sub-records

Instance Attribute Summary

Attributes inherited from RecordContext

#record

Instance Method Summary collapse

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