Class: Spec::Fixtures::Animal
- Defined in:
- lib/vendor/plugins/rspec/spec/spec/expectations/differs/default_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.
6 7 8 |
# File 'lib/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb', line 6 def initialize(name,species) @name,@species = name,species end |
Instance Method Details
#inspect ⇒ Object
10 11 12 13 14 15 16 17 |
# File 'lib/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb', line 10 def inspect <<-EOA <Animal name=#{@name}, species=#{@species} > EOA end |