Sha256: 1f7a3f72ee1f95c460c6c8c26e42d7f519513f817a4e617e98eec3e8dfa3ffad

Contents?: true

Size: 290 Bytes

Versions: 1

Compression:

Stored size: 290 Bytes

Contents

require "dig/block/version"
require "ostruct"

module Dig
  module Block
    def dig(*)
      ret = super
      return ret if ret
      yield if block_given?
    end
  end
end

::Hash.prepend Dig::Block
::Array.prepend Dig::Block
::Struct.prepend Dig::Block
::OpenStruct.prepend Dig::Block

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dig-block-1.0.0 lib/dig/block.rb