Class: B

Inherits:
Object
  • Object
show all
Includes:
Contracts::Core
Defined in:
lib/contracts-ruby2/spec/fixtures/fixtures.rb,
lib/contracts-ruby3/spec/fixtures/fixtures.rb

Instance Method Summary collapse

Methods included from Contracts::Core

common, extended, included

Instance Method Details

#badObject



36
37
38
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 36

def bad
  false
end

#triple(x) ⇒ Object



41
42
43
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 41

def triple x
  x * 3
end