twitter-status-bot/.gems/gems/naught-1.0.0/lib/naught/null_class_builder/command.rb

21 lines
384 B
Ruby
Raw Normal View History

2014-09-03 08:49:59 +00:00
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