Class: Handle
- Inherits:
-
Object
- Object
- Handle
- Defined in:
- lib/support.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(contents) ⇒ Handle
constructor
A new instance of Handle.
Constructor Details
#initialize(contents) ⇒ Handle
Returns a new instance of Handle.
158 159 160 |
# File 'lib/support.rb', line 158 def initialize(contents) @contents = contents end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
156 157 158 |
# File 'lib/support.rb', line 156 def contents @contents end |
Instance Method Details
#==(other) ⇒ Object
162 163 164 165 |
# File 'lib/support.rb', line 162 def ==(other) return nil unless other.class == self.class return other.contents == self.contents end |