代码搜索:Ruby
找到约 1,747 项符合「Ruby」的源代码
代码结果 1,747
www.eeworm.com/read/300090/13935753
cxx lexruby.cxx
// Scintilla source code edit control
/** @file LexRuby.cxx
** Lexer for Ruby.
**/
// Copyright 2001- by Clemens Wyss
// The License.txt file describes the conditions under wh
www.eeworm.com/read/275831/10793899
rb 11 - creating a shared whiteboard.rb
#!/usr/bin/ruby -w
# english_client.rb
require 'drb'
require 'rinda/tuplespace'
# Connect to the TupleSpace...
DRb.start_service
tuplespace = Rinda::TupleSpaceProxy.new(
DRbObject.new_with_uri('dru
www.eeworm.com/read/275831/10794516
rb 03 - testing whether a program is running interactively.rb
#!/usr/bin/ruby -w
# interactive_or_not.rb
if STDIN.tty?
puts "Let me be the first to welcome my human overlords."
else
puts "How goes the revolution, brother software?"
end
#---
$ ./interactive_o
www.eeworm.com/read/442749/7645719
py using_dict.py
#!/usr/bin/env python
# Filename: using_dict.py
# 'ab' is short for 'a'ddress'b'ook
ab={ 'Swaroop' : 'swaroopch@byteofpython.info',
'Larry' : 'larry@wall.org',
'Matsumoto' : 'matz@ruby-lan
www.eeworm.com/read/435264/7794855
py using_dict.py
#!/usr/bin/env python
# Filename: using_dict.py
# 'ab' is short for 'a'ddress'b'ook
ab={ 'Swaroop' : 'swaroopch@byteofpython.info',
'Larry' : 'larry@wall.org',
'Matsumoto' : 'matz@ruby-lan
www.eeworm.com/read/109233/6175950
rb tkbiff.rb
#! /usr/local/bin/ruby
if ARGV[0] != '-d'
unless $DEBUG
exit if fork
end
else
ARGV.shift
end
if ARGV.length == 0
if ENV['MAIL']
$spool = ENV['MAIL']
else
$spool = '/usr/spool
www.eeworm.com/read/338640/6316470
rb 2.rb
#!/usr/local/ruby
def return_block
yield
end
def return_proc(&proc)
yield
end
return_block{puts "Got block!"}
return_proc {puts "got block, convet to proc!"}
www.eeworm.com/read/458008/1590163
rb dispatch.rb
#!/opt/local/bin/ruby
#---
# Excerpted from "Agile Web Development with Rails, 2nd Ed."
# We make no guarantees that this code is fit for any purpose.
# Visit http://www.pragmaticprogrammer.com/title
www.eeworm.com/read/458008/1590201
rb dispatch.rb
#!/opt/local/bin/ruby
#---
# Excerpted from "Agile Web Development with Rails, 2nd Ed."
# We make no guarantees that this code is fit for any purpose.
# Visit http://www.pragmaticprogrammer.com/title
www.eeworm.com/read/458008/1590449
rb dispatch.rb
#!/opt/local/bin/ruby
#---
# Excerpted from "Agile Web Development with Rails, 2nd Ed."
# We make no guarantees that this code is fit for any purpose.
# Visit http://www.pragmaticprogrammer.com/title