Class: Substance
- Defined in:
- lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb
Instance Method Summary collapse
- #exist?(arg = nil) ⇒ Boolean
-
#initialize(exists, description) ⇒ Substance
constructor
A new instance of Substance.
- #inspect ⇒ Object
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
8 9 10 |
# File 'lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb', line 8 def exist?(arg=nil) @exists end |
#inspect ⇒ Object
11 12 13 |
# File 'lib/vendor/plugins/rspec/spec/spec/matchers/exist_spec.rb', line 11 def inspect @description end |