Class: Musterb::NullExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/musterb/null_extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#parentObject (readonly)

Returns the value of attribute parent.



2
3
4
# File 'lib/musterb/null_extractor.rb', line 2

def parent
  @parent
end

#valueObject (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