Sha256: 573d6c4ef2a0fbdd79d0f1bf0ddfd68dca9b8b406831ede061d15a73573f7ab4
Contents?: true
Size: 190 Bytes
Versions: 1
Compression:
Stored size: 190 Bytes
Contents
require "object_thru/version" class Object def thru(callable = nil) if callable.respond_to?(:call) callable.call(self) elsif block_given? yield self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
object_thru-0.0.1 | lib/object_thru.rb |