Class: Substance

Inherits:
Object show all
Defined in:
lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb

Instance Method Summary collapse

Constructor Details

#initialize(exists, description) ⇒ Substance

Returns a new instance of Substance.



4
5
6
7
# File 'lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb', line 4

def initialize exists, description
  @exists = exists
  @description = description
end

Instance Method Details

#exist?(arg = nil) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb', line 8

def exist?(arg=nil)
  @exists
end

#inspectObject



11
12
13
# File 'lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb', line 11

def inspect
  @description
end