Class: Hiiro::Matcher::Item

Inherits:
Object
  • Object
show all
Defined in:
lib/hiiro/matcher.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item:, extracted_item:, key: nil, block: nil) ⇒ Item

Returns a new instance of Item.



150
151
152
153
154
155
# File 'lib/hiiro/matcher.rb', line 150

def initialize(item:, extracted_item:, key: nil, block: nil)
  @item = item
  @extracted_item = extracted_item
  @key = key
  @block = block
end

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



148
149
150
# File 'lib/hiiro/matcher.rb', line 148

def block
  @block
end

#extracted_itemObject (readonly)

Returns the value of attribute extracted_item.



148
149
150
# File 'lib/hiiro/matcher.rb', line 148

def extracted_item
  @extracted_item
end

#itemObject (readonly)

Returns the value of attribute item.



148
149
150
# File 'lib/hiiro/matcher.rb', line 148

def item
  @item
end

#keyObject (readonly)

Returns the value of attribute key.



148
149
150
# File 'lib/hiiro/matcher.rb', line 148

def key
  @key
end