moved #{meters}m." class Snake extends Animal move: -> alert "Slithering..." super 5 class Horse extends Animal move: -> alert "Galloping..." super 45 sam = new Snake "Sammy the Python" tom = new Horse "Tommy the Palomino" sam.move() tom.move()
moved #{meters}m." class Snake extends Animal move: -> alert "Slithering..." super 5 class Horse extends Animal move: -> alert "Galloping..." super 45 sam = new Snake "Sammy the Python" tom = new Horse "Tommy the Palomino" sam.move() tom.move() UIJTOBNFୈҰҾ !UIJTͷ͜ͱɺলུՄೳ มͷຒΊࠐΈ DMBTTOFX'VODUJPOͯ͠ QSPUPUZQFΛ֦ு͢Δίʔυͱಉٛ TVQFSΫϥεͷࢀরՄೳ WBS͍Βͳ͍ ҾΛऔΔ߹ লུՄೳ GVODUJPO FYUFOETՄೳ
} if (happy && knowsIt) { clapsHands(); chaChaCha(); } else { showIt(); } date = friday ? sue : jill; mood = greatlyImproved if singing if happy and knowsIt clapsHands() chaChaCha() else showIt() date = if friday then sue else jill ޙஔ ࡾ߲ԋࢉ
when "Tue" then go relax when "Thu" then go iceFishing when "Fri", "Sat" if day is bingoDay go bingo go dancing when "Sun" then go church else go work TXJUDI͔ΒฦΓΛΒ͑Δ CSFBLෆཁ ҰߦͰॻ࣌͘UIFO ෳߦͳΒUIFO͍Βͳ͍ EFGBVMU͡Όͳͯ͘FMTF
no, off @, this of in :: @property, @.property unless hoge === !== ! && || true false this in prototype this.property if !hoge String::trim = ->ɹΈͨ͑͘Δ
-- never mind how long precisely -- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world..." html = """ <strong> cup of coffeescript </strong> """ ͜ͷϥΠϯΛΠϯσϯτج४ʹग़ྗ <strong>\n cup of coffeescript\n</strong> ʹͳΔ ్தվߦ҆શʹແࢹ͞ΕΔ