Skip to content

Instantly share code, notes, and snippets.

@maximedelpit
maximedelpit / gist:5d560fca7b6043180f8f
Created January 14, 2015 18:08
Livecode_oranger.rb
class Oranger
attr_reader :age, :height, :fruits
def initialize
@age = 0
@height = 0
@fruits = 0
@alive = true
end
@maximedelpit
maximedelpit / interface
Last active August 29, 2015 14:13
Livecode_oranger.rb
require_relative 'oranger'
oranger = Oranger.new
98.times do
oranger.one_year_passes
oranger.pick_a_fruit
puts "L'oranger est #{oranger.dead? ? 'mort' : 'vivant'}, il a #{oranger.age} ans, mesure #{oranger.height}cm et a #{oranger.fruits} fruits"
end
@maximedelpit
maximedelpit / Gemfile
Last active February 26, 2017 21:51
Rails materialize setup
gem 'materialize-sass'
gem 'materialize-form'