Cara Mengetahui Platform Ruby Apa yang digunakan Program Ruby

Posted: December 21, 2007 in RUBY

RUBY_PLATFORM

itu mantranya, dapetnya dari milis ruby-talk dari Matz. Jadi ketika saya di server tinggal:

$ ruby -e "puts RUBY_PLATFORM"
x86_64-linux

atau kalau di macbook (Leopard 10.5.1) ini jadinya:

$ irb
>> RUBY_PLATFORM
=> "universal-darwin9.0"
>> exit

tinggalkan feedback konstruktif atau lebih baik diam

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s