Class: SingletonClassExample

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

Class Method Summary collapse

Methods included from Contracts::Core

common, extended, included

Class Method Details

.add(a, b) ⇒ Object



580
581
582
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 580

def add(a, b)
  a + b
end

.hoge(str) ⇒ Object



575
576
577
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 575

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