Class: Spec::Example::Fish

Inherits:
Object show all
Defined in:
lib/vendor/plugins/rspec/spec/spec/example/predicate_matcher_spec.rb

Instance Method Summary collapse

Instance Method Details

#can_swim?(distance_in_yards) ⇒ Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/vendor/plugins/rspec/spec/spec/example/predicate_matcher_spec.rb', line 6

def can_swim?(distance_in_yards)
  distance_in_yards < 1000
end