Method: Exerb::Recipe::ResourceBlock#initialize
- Defined in:
- lib/exerb/recipe.rb
#initialize(block, filename) ⇒ ResourceBlock
Returns a new instance of ResourceBlock.
229 230 231 232 233 |
# File 'lib/exerb/recipe.rb', line 229 def initialize(block, filename) @icon = IconBlock.analyze(block, filename) @version = VersionBlock.analyze(block, filename) raise(Exerb::ExerbError, "#{filename}: unknown field at resource block -- #{block.keys.join(', ')}") unless block.empty? end |