Method: Exerb::Recipe::PathBlock#initialize
- Defined in:
- lib/exerb/recipe.rb
#initialize(block, filename) ⇒ PathBlock
Returns a new instance of PathBlock.
207 208 209 210 211 212 |
# File 'lib/exerb/recipe.rb', line 207 def initialize(block, filename) @path = block.collect { |entry| raise(Exerb::ExerbError, "#{filename}: path block entries must be String object -- #{entry.type}") unless entry.kind_of?(String) entry.strip } end |