irb without echo, irb tanpa echo

Posted: March 9, 2007 in ノート, RUBY, Technology
Tags: , , , ,

Thank you Ara.

irb(main):005:0> 'no echo'
irb(main):006:0> p 42
42
irb(main):007:0> a = [1,2,4,12,345,6,4,2]
irb(main):008:0> p a
[1, 2, 4, 12, 345, 6, 4, 2]
irb(main):011:0> 'tidak ada echo'
irb(main):012:0> IO.readlines "/Users/arie/.irbrc"
irb(main):013:0> puts IO.readlines("/Users/arie/.irbrc")
require 'rubygems'
require 'wirble'

Wirble.init
Wirble.colorize

def fri(*names)
  system(%{fri #{names.map {|name| name.to_s}.join(" ")}})
end

IRB.conf[:PROMPT_MODE] = :DEFAULT
IRB.conf[:PROMPT][ IRB.conf[:PROMPT_MODE] ][:RETURN]=''
irb(main):014:0> 

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