Class: Handle

Inherits:
Object
  • Object
show all
Defined in:
lib/support.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentsObject

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