Changes between Version 11 and Version 12 of RubyLanguage
- Timestamp:
- 11/22/10 20:19:08 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RubyLanguage
v11 v12 63 63 Cobra: 64 64 {{{ 65 #! python65 #!cobra 66 66 class A 67 67 def main is shared … … 101 101 But you can use slicing to bypass the program name: 102 102 {{{ 103 #! python103 #!cobra 104 104 class A 105 105 def main is shared … … 127 127 Cobra: 128 128 {{{ 129 #! python129 #!cobra 130 130 class A inherits B 131 131 … … 160 160 Cobra: 161 161 {{{ 162 #! python162 #!cobra 163 163 .method(do(arg)) 164 164 <statements> … … 174 174 Cobra: 175 175 {{{ 176 #! python176 #!cobra 177 177 if x < y, print x 178 178 if x < y, print x … … 188 188 Cobra: 189 189 {{{ 190 #! python190 #!cobra 191 191 if x is nil 192 192 print 'x is nil'