Sha256: e8e5ef6cbaeb1c25d2530f1b37734fe6b66ac0a6ba93d738553d3b09b1fca2f1
Contents?: true
Size: 361 Bytes
Versions: 12
Compression:
Stored size: 361 Bytes
Contents
class Hash def select(&block) val = super(&block) if val.is_a?(Array) val = val.inject({}) do |accumulator, element| accumulator[element[0]] = element[1] accumulator end end val end end class NullObject def method_missing(*args) self end end class Object def pb_logger Punchblock.logger end end
Version data entries
12 entries across 12 versions & 1 rubygems