Method: Exerb::Recipe::PathBlock.analyze

Defined in:
lib/exerb/recipe.rb

.analyze(blocks, filename) ⇒ Object

Raises:



216
217
218
219
220
221
# File 'lib/exerb/recipe.rb', line 216

def self.analyze(blocks, filename)
  block = blocks.delete("path")
  return nil if block.nil?
  raise(Exerb::ExerbError, "#{filename}: path block must be Array object -- #{block.class}") unless block.kind_of?(Array)
  return self.new(block, filename)
end