Class: Dizby::SemibuiltObject

Inherits:
Object
  • Object
show all
Defined in:
lib/dizby/utility/semi_built.rb

Instance Method Summary collapse

Constructor Details

#initialize(klass, *args) ⇒ SemibuiltObject

Returns a new instance of SemibuiltObject.


4
5
6
7
# File 'lib/dizby/utility/semi_built.rb', line 4

def initialize(klass, *args)
  @klass = klass
  @base_args = args
end

Instance Method Details

#done


13
14
15
# File 'lib/dizby/utility/semi_built.rb', line 13

def done
  with
end

#with(*args, &block)


9
10
11
# File 'lib/dizby/utility/semi_built.rb', line 9

def with(*args, &block)
  @klass.new(*@base_args, *args, &block)
end