Sha256: 231c915502bff436241190cc880d87283a5f1410f4eed2544d81fb7402d41797

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 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
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bogus-0.1.4 lib/bogus/stubbing/undefined_return_value.rb