るりまサーチ

最速Rubyリファレンスマニュアル検索!
266件ヒット [1-100件を表示] (0.063秒)
トップページ > クエリ:@[x] > 種類:ライブラリ[x]

検索結果

<< 1 2 3 > >>

pp (529.0)

オブジェクトなどを見やすく出力するためのライブラリです。

...10 @stack=[], @genspace=#<Proc:0x81a0cc0>, @nest=[0], @newline="\n",
@
buf=#<PrettyPrint::Group:0x81a0c98 @group=0, @tail=0, @buf=[#<PrettyPrint::Gro
up:0x81a0ba8 @group=1, @tail=0, @buf=[#<PrettyPrint::Text:0x81a0b30 @tail=2, @wi
dth=1, @text="[">, #<PrettyPrint::Group:0x81a0a68 @group=2, @ta...
...il=1, @buf=[#<Pre
ttyPrint::Text:0x81a09f0 @tail=1, @width=1, @text="1">], @singleline_width=1>, #
<PrettyPrint::Text:0x81a0a7c @tail=0, @width=1, @text=",">, #<PrettyPrint::Break
able:0x81a0a2c @group=2, @gensace=#<Proc:0x81a0cc0>, @newline="\n", @indent=1, @
tail=2, @sep=" ", @width=1>, #<...
...PrettyPrint::Group:0x81a09c8 @group=2, @tail=1, @
buf=[#<PrettyPrint::Text:0x81a0950 @tail=1, @width=1, @text="2">], @singleline_w
idth=1>, #<PrettyPrint::Text:0x81a0af4 @tail=0, @width=1, @text="]">], @singleli
ne_width=6>], @singleline_width=6>, @sharing_detection=false>

pp による pretty...

rubygems/security (145.0)

このライブラリは暗号署名を RubyGems パッケージに使用するために使用します。

...います。

==== 解説
@
todo メソッドではない

あなたが自分の Gem に署名するためには、秘密鍵と自己署名した証明書が必要です。
以下のコマンドを実行するとそれらを作成することができます。

# gemmaster@example.com のための...
...秘密鍵と証明書を作成します
$ gem cert --build gemmaster@example.com

あなたのコンピュータの性能にもよりますが、これには 5 秒から 10 分程度かかります。
(公開鍵を作成するアルゴリズムは世界で一番速いものを使っているわけ...
...使用します。信頼の階層の例を図示します。


--------------------------
| rubygems@rubyforge.org |
--------------------------
|
-----------------------...

cgi/session (67.0)

CGI のセッション管理を行うライブラリ。

...o
def initialize
@
cgi = CGI.new
File.umask(0077) # セッションファイルは誰にも読まれたくないよ
@
session = CGI::Session.new(@cgi) # セッションはこうして生成する。
@
cmd = "#{@cgi['cmd'].first}"...
...# ruby 1.8 でも動くように(warning は出ます)
@
cmd = 'start' if @cmd.empty?
@
header = { "type" => "text/html", "charset" => "euc-jp" }

__send__("cmd_#{@cmd}")
end

def cmd_start
@
cgi.out(@header) {
<<-END
<html><head><title>CGI::...
...</body></html>
END
}
end

def cmd_hello
name = Kconv.toeuc(@cgi['name'].first)
@
session['name'] = name # セッションに記憶
@
cgi.out(@header) { # セッション情報は隠れクッキーで保持...

net/smtp (67.0)

メールを送信するためのプロトコル SMTP (Simple Mail Transfer Protocol) を扱うライブラリです。

...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-Id: <unique.message.id.string@yourhost.example.com>

This is a test mail...
...せん。

# 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 を呼んでくれるので便...
...sing 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'
}

==== 文字列以外からの送信

ひとつ上の例では文字列リテラル (ヒアドキュメント) を使って...

rubygems (31.0)

RubyGems を扱うためのクラスやモジュールが定義されているライブラリです。

...oxy サーバ経由で Gem パッケージをインストールするには以下のようにします。

$ gem install rak -p http://user:password@proxy.example.com/

==== Gem パッケージをアンインストールする

例えば rak をアンインストールするには、以下のい...
...ry = 'hello summary'
s.files = ['lib/hello.rb']
s.authors = ['Hello Author']
s.email = 'hello_author@example.com'
s.homepage = 'http://example.com/hello/'
s.description = 'hello description'
end
//}

: name
この Gem の名前...
...= ['bin/hello', 'lib/hello.rb']
s.executables = ['hello']
s.authors = ['Hello Author']
s.email = 'hello@example.com'
s.homepage = 'http://example.com/hello'
s.description = 'hello description'
end
//}

ライブラリの例に加え...

絞り込み条件を変える

tsort (31.0)

tsort はトポロジカルソートと強連結成分に関するモジュールを提供します。

...//emlist[][ruby]{
require 'tsort'

class Make
def initialize
@
dep = {}
@
dep.default = []
end

def rule(outputs, inputs=[], &block)
triple = [outputs, inputs, block]
outputs.each {|f| @dep[f] = [triple]}
@
dep[triple] = inputs
end

def build(target)
each_strongly_co...
...nputs_time != nil && inputs_time.to_i == Time.now.to_i
block.call
end
end
}
end

def tsort_each_child(node, &block)
@
dep[node].each(&block)
end
include TSort
end

def command(arg)
print arg, "\n"
system arg
end

m = Make.new
m.rule(%w[t1]) { command 'date...

drb/gw (25.0)

drb 通信を中継するゲートウェイ(DRb::GW)と、 中継に必要なオブジェクト識別子変換クラス(DRb::GWIdConv)、 および DRb::DRbObject への拡張が含まれています。

...rb/drb'

class Foo
include DRbUndumped
def initialize(name, peer=nil)
@
name = name
@
peer = peer
end

def ping(obj)
puts "#{@name}: ping: #{obj.inspect}"
@
peer.ping(self) if @peer
end
end

gw_b.rb
require 'drb/drb'
require 'drb/gw'
require 'dr...

minitest/unit (25.0)

ユニットテストを行うためのライブラリです。

...MiniTest::Unit::TestCase
def setup
@
foo = Foo.new
end
# teardown はあまり使わない
def teardown
@
foo = nil
end

def test_foo
assert_equal "foo", @foo.foo
end

def test_bar
assert_equal "bar", @foo.bar
end
end

または MiniTe...

rdoc/generator/json_index (19.0)

他のジェネレータが生成する HTML で検索が行えるように、JSON の検索インデッ クスを生成するサブライブラリです。

...class RDoc::Generator::Darkfish
def initialize options
# ...
@
base_dir = Pathname.pwd.expand_path

@
json_index = RDoc::Generator::JsonIndex.new self, options
end

def generate
# ...
@
json_index.generate
end
end

=== インデックスフォーマッ...

rexml/parsers/streamparser (19.0)

ストリーム式の XML パーサ。

...equire 'rexml/streamlistener'
class Listener
include REXML::StreamListener
def initialize
@
events = []
end

def text(text)
@
events << "text[#{text}]"
end

def tag_start(name, attrs)
@
events << "tag_start[#{name}]"
end

attr_reader :events
end

xml = <<EOS
<members>
<mem...

絞り込み条件を変える

<< 1 2 3 > >>