Class: ConvenientService::Support::RawValue
- Inherits:
-
Object
- Object
- ConvenientService::Support::RawValue
- Defined in:
- lib/convenient_service/support/raw_value.rb
Class Method Summary collapse
Instance Method Summary collapse
- #==(other) ⇒ Boolean?
- #initialize(object) ⇒ void constructor
-
#unwrap ⇒ Object
Can be any type.
Constructor Details
#initialize(object) ⇒ void
10 11 12 |
# File 'lib/convenient_service/support/raw_value.rb', line 10 def initialize(object) @object = object end |
Class Method Details
.wrap(object) ⇒ ConvenientService::Support::RawValue
19 20 21 |
# File 'lib/convenient_service/support/raw_value.rb', line 19 def wrap(object) new(object) end |
Instance Method Details
#==(other) ⇒ Boolean?
36 37 38 39 40 41 42 |
# File 'lib/convenient_service/support/raw_value.rb', line 36 def ==(other) return unless other.instance_of?(self.class) return false if object != other.object true end |
#unwrap ⇒ Object
Returns Can be any type.
29 30 31 |
# File 'lib/convenient_service/support/raw_value.rb', line 29 def unwrap object end |