Class: NodeParamsExtractor

Inherits:
Struct
  • Object
show all
Defined in:
lib/src/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



46
47
48
# File 'lib/src/extractor.rb', line 46

def node
  @node
end

Instance Method Details

#extractObject



47
48
49
# File 'lib/src/extractor.rb', line 47

def extract
  [node.path, *node.props.values_at(:in_parent, :path, :link, :attr)]
end