Class: Spec::Fixtures::Animal

Inherits:
Object
  • Object
show all
Defined in:
lib/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb

Instance Method Summary collapse

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

#inspectObject



10
11
12
13
14
15
16
17
# File 'lib/vendor/plugins/rspec/spec/spec/expectations/differs/default_spec.rb', line 10

def inspect
  "<Animal\n  name=\#{@name},\n  species=\#{@species}\n>\n  EOA\nend\n"