Module: Saper::DSL

Defined in:
lib/saper/core/dsl.rb

Defined Under Namespace

Modules: Methods Classes: Recipe

Class Method Summary collapse

Class Method Details

.included(base) ⇒ void

This method returns an undefined value.

Enables recipe parsing in modules that include Saper::DSL.


12
13
14
# File 'lib/saper/core/dsl.rb', line 12

def self.included(base)
  base.extend(Methods)
end

.newObject

Returns a new empty module with embedded parsing methods.


6
7
8
# File 'lib/saper/core/dsl.rb', line 6

def self.new
  Module.new.extend(Methods)
end