231件ヒット
[1-100件を表示]
(0.011秒)
別のキーワード
キーワード
- cgi (12)
- fiddle (12)
- find (12)
- irb (12)
-
net
/ http (12) -
net
/ imap (12) -
net
/ smtp (12) - open-uri (12)
- optparse (12)
-
rdoc
/ generator / json _ index (12) -
rdoc
/ markdown (12) -
rdoc
/ parser / c (12) -
rubygems
/ commands / generate _ index _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / mirror _ command (12) -
rubygems
/ commands / pristine _ command (12) -
rubygems
/ commands / server _ command (12) -
rubygems
/ commands / uninstall _ command (12) - tsort (12)
- xmlrpc (3)
検索結果
-
optparse (91.0)
-
コマンドラインのオプションを取り扱うためのライブラリです。
...OptionParser::InvalidOption)
from /usr/local/lib/ruby/1.9/optparse.rb:1426:in `catch'
from /usr/local/lib/ruby/1.9/optparse.rb:1426:in `complete'
from /usr/local/lib/ruby/1.9/optparse.rb:1287:in `order!'
from /usr/local/lib/ruby/1.9/opt......optparse.rb:1256:in `order!'
from /usr/local/lib/ruby/1.9/optparse.rb:1336:in `permute!'
from /usr/local/lib/ruby/1.9/optparse.rb:1363:in `parse!'
from /usr/local/lib/ruby/1.9/optparse.rb:1356:in `parse'
from ./sample.rb:9
OptionParser......ptionParser::MissingArgument)
from /usr/local/lib/ruby/1.9/optparse.rb:1295:in `order!'
from /usr/local/lib/ruby/1.9/optparse.rb:1256:in `catch'
from /usr/local/lib/ruby/1.9/optparse.rb:1256:in `order!'
from /usr/local/lib/ruby/1.9/optp... -
net
/ smtp (37.0) -
メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。
...す。
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.send_message(<<-EndOfMail, 'from@example.com', 'to@example.net')
From: Your Name <from@example.com>
To: Dest Address <to@example.net>
Subject: test mail
Date: Sat, 23 Jun 2001 16:26:43 +0900
Message-......ありません。
# using SMTP#finish
require 'net/smtp'
smtp = Net::SMTP.start('smtp.example.com', 25)
smtp.send_message mail_string, 'from@example.com', 'to@example.net'
smtp.finish
またブロック付きの Net::SMTP.start, Net::SMTP#start
を使うと finish を呼んでくれる......。
# using block form of SMTP.start
require 'net/smtp'
Net::SMTP.start('smtp.example.com', 25) {|smtp|
smtp.send_message mail_string, 'from@example.com', 'to@example.net'
}
==== 文字列以外からの送信
ひとつ上の例では文字列リテラル (ヒアドキュメント)... -
irb (13.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...-d $DEBUG を true にする (ruby -d と同じ)
-w ruby -w と同じ
-W[level=2] ruby -W と同じ
-r library ruby -r と同じ
-I ruby -I と同じ
-U ruby -U と同じ
-E enc ruby -E と同じ
--ve......# サブ irb を起動
irb#1(main):001:0> x # x を表示
NameError: undefined local variable or method `x' for main:Object
from (irb#1):1:in `Kernel#binding'
起動時のインタプリタでローカル変数 x を定義しましたが、
「irb」でサブ irb を起動......Enter the method name you want to look up.
You can use tab to autocomplete.
Enter a blank line to exit.
>> String#match
String#match
(from ruby core)
------------------------------------------------------------------------------
str.match(pattern) -> matchdata or nil
s... -
net
/ http (13.0) -
汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。
...gi'),
{'from'=>'2005-01-01', 'to'=>'2005-03-31'})
puts res.body
#例3: より細かく制御する
url = URI.parse('http://www.example.com/todo.cgi')
req = Net::HTTP::Post.new(url.path)
req.basic_auth 'jack', 'pass'
req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-3... -
rdoc
/ generator / json _ index (13.0) -
他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ クスを生成するサブライブラリです。
...る HTML で検索が行えるように、JSON の検索インデッ
クスを生成するサブライブラリです。
This generator is derived from sdoc by Vladimir Kolesnikov and
contains verbatim code written by him.
このジェネレータは HTML ジェネレータと一緒に使うため......LAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.... -
rubygems
/ commands / server _ command (13.0) -
ローカルにインストールされている Gem パッケージとそのドキュメントを HTTP サーバに 載せて公開するためのライブラリです。
...Usage: gem server [options]
Options:
-p, --port=PORT port to listen on
-d, --dir=GEMDIR directory from which to serve gems
--[no-]daemon run as a daemon
Common Options:
-h, --help このコマ......s.
The cache files for installed gems must exist to use the server as a source
for gem installation.
To install gems from a running server, use `gem install GEMNAME --source
http://gem_server_host:8808`
Defaults:
--port 8808 --dir /usr/lib/ruby/gems/1.... -
rubygems
/ commands / uninstall _ command (13.0) -
Gem パッケージをアンインストールするためのライブラリです。
...confirmation
-i, --install-dir DIR Directory to uninstall gem from
-n, --bindir DIR Directory to remove binaries from
-v, --version VERSION Specify version of gem to uninstall
--platform PLATFORM S... -
cgi (7.0)
-
CGI プログラムの支援ライブラリです。
...ものがあります。
* HTTP_ACCEPT
* HTTP_ACCEPT_CHARSET
* HTTP_ACCEPT_ENCODING
* HTTP_ACCEPT_LANGUAGE
* HTTP_CACHE_CONTROL
* HTTP_FROM
* HTTP_HOST
* HTTP_NEGOTIATE
* HTTP_PRAGMA
* HTTP_REFERER
* HTTP_USER_AGENT
CGI に関連する環境変数に関しては
http://www.w3... -
fiddle (7.0)
-
*.dllや*.soなど、ダイナミックリンクライブラリを扱うためのライブラリです。
...extend Fiddle::Importer
dlload "libc.so.6","libm.so.6"
extern "int strlen(char*)"
end
# Note that we should not include the module M from some reason.
p M.strlen('abc') #=> 3
M.strlen を使用することで、ライブラリ関数 strlen() を使用できます。
==== 構...