Module: Ducktrap::Nullary::ClassMethods
- Defined in:
- lib/ducktrap/nullary.rb
Overview
Class method mixin
Instance Method Summary collapse
-
#build(*args) ⇒ Ducktrap
private
Build ducktrap.
Instance Method Details
#build(*args) ⇒ Ducktrap
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Build ducktrap
13 14 15 16 17 18 |
# File 'lib/ducktrap/nullary.rb', line 13 def build(*args) if block_given? raise "#{name}.build does not take a block" end new(*args) end |