Class: Danica::DSL::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/danica/dsl/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(method, claz = nil, base = nil) ⇒ Builder

Returns a new instance of Builder.



8
9
10
11
12
# File 'lib/danica/dsl/builder.rb', line 8

def initialize(method, claz = nil, base = nil)
  @method = method
  @claz = claz
  @base = base
end

Instance Attribute Details

#baseObject (readonly)

Returns the value of attribute base.



6
7
8
# File 'lib/danica/dsl/builder.rb', line 6

def base
  @base
end

#clazObject (readonly)

Returns the value of attribute claz.



6
7
8
# File 'lib/danica/dsl/builder.rb', line 6

def claz
  @claz
end

#methodObject (readonly)

Returns the value of attribute method.



6
7
8
# File 'lib/danica/dsl/builder.rb', line 6

def method
  @method
end

Instance Method Details

#buildObject



14
15
16
# File 'lib/danica/dsl/builder.rb', line 14

def build
  DSL.register_class(method, clazz)
end