Module: NodeattrUtils::Nodes

Defined in:
lib/nodeattr_utils.rb

Class Method Summary collapse

Class Method Details

.collapse(*nodes) ⇒ Object

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



39
40
41
# File 'lib/nodeattr_utils.rb', line 39

def self.collapse(*nodes)
  nodes.flatten.join(',')
end

.expand(string) ⇒ Object



33
34
35
# File 'lib/nodeattr_utils.rb', line 33

def self.expand(string)
  NodeattrUtils::NodeParser.expand(string)
end