Method: Template::Spec#spec
- Defined in:
- lib/template/spec.rb
#spec(identifier, &config) ⇒ Object
This method is called from the klippspec
96 97 98 99 100 101 102 103 104 |
# File 'lib/template/spec.rb', line 96 def spec identifier, &config self.identifier = identifier begin config.yield(self) if (block_given?) rescue Exception => e raise "Invalid klippspec configuration: #{e.message}\n #{e.backtrace.join("\n ")}" end validate_spec end |