Title / Description
Code road_bike = RoadBike.new( size: 'M', tape_color: 'red') puts road_bike.tire_size # => 23 puts road_bike.chain # => 11-speed mountain_bike = MountainBike.new( size: 'S', front_shock: 'Manitou', rear_shock: 'Fox') puts mountain_bike.tire_size # => 2.1 puts mountain_bike.chain # => 11-speed
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code