21 lines
384 B
Ruby
21 lines
384 B
Ruby
module Naught
|
|
class NullClassBuilder
|
|
class Command
|
|
attr_reader :builder
|
|
|
|
def initialize(builder)
|
|
@builder = builder
|
|
end
|
|
|
|
def call
|
|
fail NotImplementedError,
|
|
'Method #call should be overriden in child classes'
|
|
end
|
|
|
|
def defer(options = {}, &block)
|
|
@builder.defer(options, &block)
|
|
end
|
|
end
|
|
end
|
|
end
|