Module: ModuleExample

Includes:
Contracts::Core
Included in:
KlassWithModuleExample
Defined in:
lib/contracts-ruby2/spec/fixtures/fixtures.rb,
lib/contracts-ruby3/spec/fixtures/fixtures.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Contracts::Core

common, extended, included

Class Method Details

.eat(food) ⇒ Object



640
641
642
643
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 640

def eat(food)
  # yummy
  nil
end

.hoge(str) ⇒ Object



634
635
636
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 634

def self.hoge(str)
  "super#{str}"
end

Instance Method Details

#plus(a, b) ⇒ Object



629
630
631
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 629

def plus(a, b)
  a + b
end