Method: Pipely::Definition.parse

Defined in:
lib/pipely/definition.rb

.parse(content) ⇒ Object



22
23
24
25
26
27
# File 'lib/pipely/definition.rb', line 22

def self.parse(content)
  objects = JSON.parse(content)['objects']
  components = objects.map{|obj| Component.new(obj)}

  new(components)
end