module NodeattrUtils::Nodes

Public Class Methods

collapse(*nodes) click to toggle source

TODO: Actually collapse the nodes array instead of joining them as a single string

# File lib/nodeattr_utils.rb, line 39
def self.collapse(*nodes)
  nodes.flatten.join(',')
end
expand(string) click to toggle source
# File lib/nodeattr_utils.rb, line 33
def self.expand(string)
  NodeattrUtils::NodeParser.expand(string)
end