Class: Musterb::NullExtractor
- Inherits:
-
Object
- Object
- Musterb::NullExtractor
- Defined in:
- lib/musterb/null_extractor.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
readonly
Returns the value of attribute parent.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #[](value) ⇒ Object
-
#initialize(parent = nil) ⇒ NullExtractor
constructor
A new instance of NullExtractor.
Constructor Details
#initialize(parent = nil) ⇒ NullExtractor
Returns a new instance of NullExtractor.
4 5 6 |
# File 'lib/musterb/null_extractor.rb', line 4 def initialize(parent = nil) @parent = parent || self end |
Instance Attribute Details
#parent ⇒ Object (readonly)
Returns the value of attribute parent.
2 3 4 |
# File 'lib/musterb/null_extractor.rb', line 2 def parent @parent end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
2 3 4 |
# File 'lib/musterb/null_extractor.rb', line 2 def value @value end |
Instance Method Details
#[](value) ⇒ Object
8 9 10 |
# File 'lib/musterb/null_extractor.rb', line 8 def [](value) nil end |