Sha256: d43b6d63f481742a6e9f978626b5808439f86d8eff4a189a327387dab9c58c0d
Contents?: true
Size: 405 Bytes
Versions: 3
Compression:
Stored size: 405 Bytes
Contents
# frozen_string_literal: true class ObjectShadow module Wrap attr_reader :object def initialize(object) @object = object end # Since shadows are not supposed to be passed around, to_s is left neutral def to_s "#<ObjectShadow of #{object.inspect}>" end # The base inspect is boring, too, but it will be improved by InfoInspect alias inspect to_s end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
object_shadow-1.1.1 | lib/object_shadow/wrap.rb |
object_shadow-1.1.0 | lib/object_shadow/wrap.rb |
object_shadow-1.0.0 | lib/object_shadow/wrap.rb |