Class: RSpec::Fixtures::Animal
- Defined in:
- lib/rspec/expectations/differ_spec.rb
Instance Method Summary collapse
-
#initialize(name, species) ⇒ Animal
constructor
A new instance of Animal.
- #inspect ⇒ Object
Constructor Details
#initialize(name, species) ⇒ Animal
Returns a new instance of Animal.
7 8 9 |
# File 'lib/rspec/expectations/differ_spec.rb', line 7 def initialize(name,species) @name,@species = name,species end |
Instance Method Details
#inspect ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/rspec/expectations/differ_spec.rb', line 11 def inspect <<-EOA <Animal name=#{@name}, species=#{@species} > EOA end |