class Node
Public Class Methods
new(*)
click to toggle source
Calls superclass method
# File lib/src/node.rb, line 2 def initialize(*) super self.path ||= "" end
Public Instance Methods
array_of_paths()
click to toggle source
# File lib/src/node.rb, line 13 def array_of_paths array_paths(props[:array_of]) end
first_only?()
click to toggle source
# File lib/src/node.rb, line 7 def first_only? return unless props.is_a? Hash props[:array_presence] == "first_only" end
Private Instance Methods
array_paths(array_props)
click to toggle source
# File lib/src/node.rb, line 19 def array_paths(array_props) if array_props.is_a?(Hash) array_props.values_at(:path, :link, :uniq_by) else [array_props].flatten end end