Wiki

Changes between Version 11 and Version 12 of RubyLanguage

Show
Ignore:
Timestamp:
11/22/10 20:19:08 (14 years ago)
Author:
todd.a
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RubyLanguage

    v11 v12  
    6363Cobra: 
    6464{{{ 
    65 #!python 
     65#!cobra 
    6666class A 
    6767        def main is shared 
     
    101101But you can use slicing to bypass the program name: 
    102102{{{ 
    103 #!python 
     103#!cobra 
    104104class A 
    105105        def main is shared 
     
    127127Cobra: 
    128128{{{ 
    129 #!python 
     129#!cobra 
    130130class A inherits B 
    131131 
     
    160160Cobra: 
    161161{{{ 
    162 #!python 
     162#!cobra 
    163163.method(do(arg)) 
    164164    <statements> 
     
    174174Cobra: 
    175175{{{ 
    176 #!python 
     176#!cobra 
    177177if x < y, print x 
    178178if x < y, print x 
     
    188188Cobra: 
    189189{{{ 
    190 #!python 
     190#!cobra 
    191191if x is nil 
    192192    print 'x is nil'