Ngomong-ngomong soal OOT barusan, saya tadinya pakai contoh redefine konstanta.
Nah sekarang saya pakai contoh, nama model juga dibolehkan pakai huruf besar.
Hati-hati...
$ rubys -v
ruby 1.8.6 (2007-06-18 patchlevel 5000) [powerpc-darwin8.9.0]
$ ruby
Gede = 'aku konstanta Gede'
def Gede
'Ih Gede!'
end
puts Gede
puts Gede()
^D
aku konstanta Gede
Ih Gede!
$
$ ruby -v
ruby 1.8.6 (2007-03-13 patchlevel 0) [powerpc-darwin8.9.0]
$ rubys
Gede = 'aku konstanta Gede'
def Gede
'Ih Gede!'
end
puts Gede
puts Gede()
^D
aku konstanta Gede
Ih Gede!
$
--
r9 = { nama: Arie, nick: ariekeren, ym!: riyari3,
blog: http://ariekusumaatmaja.wordpress.com,
myst: http://groups.yahoo.com/groups/id-ruby,
vilr: %Q~
function! WhitePearl()
perl << EOF
VIM::Msg("pearls are nice for necklaces");
VIM::Msg("rubys for rings");
VIM::Msg("pythons for bags");
VIM::Msg("tcls????");
EOF
endfunction
~ }