Sha256: b71b9d300ffc0195c114e6363b56ff60a8c14485466d592430b29958077216ea
Contents?: true
Size: 901 Bytes
Versions: 18
Compression:
Stored size: 901 Bytes
Contents
# frozen_string_literal: true module ConvenientService module Support class RawValue ## # @param object [Object] Can be any type. # @return [void] # def initialize(object) @object = object end class << self ## # @param object [Object] Can be any type. # @return [ConvenientService::Support::RawValue] # def wrap(object) new(object) end private :new end ## # @return [Object] Can be any type. # def unwrap object end ## # @return [Boolean, nil] # def ==(other) return unless other.instance_of?(self.class) return false if object != other.object true end protected ## # @return [Object] Can be any type. # attr_reader :object end end end
Version data entries
18 entries across 18 versions & 1 rubygems