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.


6
7
8
9
# File 'lib/dizby/utility/semi_built.rb', line 6

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

Instance Method Details

#done


15
16
17
# File 'lib/dizby/utility/semi_built.rb', line 15

def done
  with
end

#with(*args, &block)


11
12
13
# File 'lib/dizby/utility/semi_built.rb', line 11

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