Class: Extract::ArrayOf

Inherits:
Base
  • Object
show all
Defined in:
lib/src/extract/array_of.rb

Instance Method Summary collapse

Constructor Details

#initialize(node, extractor, index = 0) ⇒ ArrayOf

Returns a new instance of ArrayOf.



5
6
7
8
# File 'lib/src/extract/array_of.rb', line 5

def initialize(node, extractor, index = 0)
  super(node, extractor)
  @index = index
end

Instance Method Details

#valueObject



10
11
12
# File 'lib/src/extract/array_of.rb', line 10

def value
  process_paths.flatten.compact
end