Class: Hiiro::Matcher::Item
- Inherits:
-
Object
- Object
- Hiiro::Matcher::Item
- Defined in:
- lib/hiiro/matcher.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#extracted_item ⇒ Object
readonly
Returns the value of attribute extracted_item.
-
#item ⇒ Object
readonly
Returns the value of attribute item.
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(item:, extracted_item:, key: nil, block: nil) ⇒ Item
constructor
A new instance of Item.
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
#block ⇒ Object (readonly)
Returns the value of attribute block.
148 149 150 |
# File 'lib/hiiro/matcher.rb', line 148 def block @block end |
#extracted_item ⇒ Object (readonly)
Returns the value of attribute extracted_item.
148 149 150 |
# File 'lib/hiiro/matcher.rb', line 148 def extracted_item @extracted_item end |
#item ⇒ Object (readonly)
Returns the value of attribute item.
148 149 150 |
# File 'lib/hiiro/matcher.rb', line 148 def item @item end |
#key ⇒ Object (readonly)
Returns the value of attribute key.
148 149 150 |
# File 'lib/hiiro/matcher.rb', line 148 def key @key end |