Class: TestOddbApp::StubSubstance

Inherits:
Object
  • Object
show all
Defined in:
test/test_util/oddbapp.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (StubSubstance) initialize(name, similar)

A new instance of StubSubstance



151
152
153
154
# File 'test/test_util/oddbapp.rb', line 151

def initialize(name, similar)
  @name = name
  @similar = similar
end

Instance Attribute Details

- (Object) name (readonly)

Returns the value of attribute name



150
151
152
# File 'test/test_util/oddbapp.rb', line 150

def name
  @name
end

Instance Method Details

- (Object) <=>(other)



155
156
157
# File 'test/test_util/oddbapp.rb', line 155

def <=>(other)
  @name.downcase <=> other.name.downcase
end