Sha256: d46311bd202c4bd9fbc7c926c7d92686faddcd91a7f8aeda7a7dfbc5300a36e3

Contents?: true

Size: 147 Bytes

Versions: 1

Compression:

Stored size: 147 Bytes

Contents

class Person
  def walk(distance)
    @distance += distance
    @hunger += 2
  end

  def eat(food)
    @hunger -= food.nutritional_value
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
explain-0.0.1 examples/person.rb