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.



3
4
5
6
# File 'lib/src/extract/array_of.rb', line 3

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

Instance Method Details

#valueObject



8
9
10
# File 'lib/src/extract/array_of.rb', line 8

def value
  process_paths.flatten.compact
end