Sha256: 807ebc1541f7ac380cb89791535b046392b03ba699ce304c80c0e80ff8a12ee2

Contents?: true

Size: 151 Bytes

Versions: 1

Compression:

Stored size: 151 Bytes

Contents

class Object
  def stub(methot, &block)
    raise ArgumentError, 'block is required' unless block
    define_singleton_method(methot, block)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
defekt-0.0.2 lib/defekt/object.rb