Class: Parent

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

Overview

for testing inheritance

Direct Known Subclasses

Child

Instance Method Summary collapse

Methods included from Contracts::Core

common, extended, included

Instance Method Details

#double(x) ⇒ Object



421
422
423
# File 'lib/contracts-ruby2/spec/fixtures/fixtures.rb', line 421

def double x
  x * 2
end