Sha256: abff2989316624d6ae6d4aa89f078c7b599c3c3f16b5bd9acd7c3448df39798d
Contents?: true
Size: 410 Bytes
Versions: 3
Compression:
Stored size: 410 Bytes
Contents
module Bogus class UndefinedReturnValue def initialize(interaction) @interaction = InteractionPresenter.new(interaction) end def to_s "#<UndefinedReturnValue for #{@interaction}>" end def method_missing(name, *args, &block) raise NoMethodError, "undefined method '#{name}' for #{self}" end def self.undefined?(value) value.is_a?(self) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bogus-0.1.7 | lib/bogus/stubbing/undefined_return_value.rb |
bogus-0.1.6 | lib/bogus/stubbing/undefined_return_value.rb |
bogus-0.1.5 | lib/bogus/stubbing/undefined_return_value.rb |