Changes between Version 6 and Version 7 of SummaryRuby
- Timestamp:
- Nov 15, 2014, 4:04:41 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SummaryRuby
v6 v7 1 2 Reserved words in ruby 2.1: 3 || __ENCODING__ || def || in || self || 4 || __LINE__ || defined? || module || super || 5 || __FILE__ || do || next || then || 6 || BEGIN || else || nil || true || 7 || END || elsif || not || undef || 8 || alias || end || or || unless || 9 || and || ensure || redo || until || 10 || begin || false || rescue || when || 11 || break || for || retry || while || 12 || case || if || return || yield || 13 || class || || || || 14 15 1 16 {{{ 2 17 #!ruby … … 13 28 # Classes: 14 29 class Animal 15 # this sets a public id/varible that can be used for our objects, 30 # this sets a public id/varible that can be used for our objects,gg 16 31 # independently of being or not declared in the class, we can already use them 17 32 attr_accessor :lenght, :color # both read and write