2266件ヒット
[1-100件を表示]
(0.043秒)
ライブラリ
- ビルトイン (1035)
- csv (132)
- e2mmap (12)
- erb (22)
- json (33)
-
net
/ http (55) -
net
/ pop (22) - observer (11)
- openssl (11)
- optparse (68)
- pathname (44)
- prime (22)
- pstore (22)
- psych (11)
- rake (33)
-
rake
/ packagetask (11) -
rinda
/ tuplespace (11) -
ripper
/ sexp (22) -
rubygems
/ dependency _ installer (11) - shell (12)
-
shell
/ command-processor (12) -
shell
/ filter (12) - socket (22)
- strscan (44)
- thread (16)
- thwait (6)
- tracer (22)
-
webrick
/ httpproxy (11) -
webrick
/ httputils (55) - win32ole (88)
- zlib (33)
クラス
- Array (16)
- BasicObject (11)
- BasicSocket (11)
- CSV (110)
-
CSV
:: FieldInfo (22) - Class (22)
- Data (2)
- ERB (11)
-
Encoding
:: Converter (44) - Enumerator (33)
-
Enumerator
:: Lazy (11) - Fiber (48)
-
Gem
:: DependencyInstaller (11) - IO (154)
- Method (31)
- Module (71)
- Mutex (2)
-
Net
:: HTTP (22) -
Net
:: POP3 (22) - Object (66)
-
OpenSSL
:: SSL :: SSLContext (11) - OptionParser (68)
- PStore (22)
- Pathname (44)
- Prime (22)
- Proc (11)
-
Rake
:: FileList (11) -
Rake
:: PackageTask (11) -
Rake
:: TaskArguments (11) - Range (11)
- Regexp (22)
-
Rinda
:: TupleSpace (11) - Ripper (22)
- Shell (12)
-
Shell
:: CommandProcessor (12) -
Shell
:: Filter (12) - Socket (11)
- StringScanner (33)
- Struct (44)
- Thread (66)
-
Thread
:: Mutex (9) -
Thread
:: Queue (42) -
Thread
:: SizedQueue (33) - ThreadsWait (6)
- TracePoint (30)
- Tracer (22)
-
WEBrick
:: HTTPProxyServer (11) -
WEBrick
:: HTTPUtils :: FormData (55) - WIN32OLE (11)
-
WIN32OLE
_ EVENT (33) -
WIN32OLE
_ PARAM (11) -
WIN32OLE
_ TYPE (22) -
WIN32OLE
_ VARIABLE (11) -
Zlib
:: Deflate (11) -
Zlib
:: Inflate (22)
モジュール
- Enumerable (88)
- Exception2MessageMapper (12)
- JSON (22)
-
JSON
:: Generator :: GeneratorMethods :: Object (11) - Kernel (129)
-
Net
:: HTTPHeader (33) - Rake (11)
キーワード
- ! (11)
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - < (11)
- <=> (11)
- ARGV (11)
- ConditionVariable (11)
- ERB (11)
- Emitter (11)
- Enumerator (11)
- Fail (6)
- Fiber (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - Observable (11)
- Proc (11)
- Queue (11)
- Raise (6)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
- StringScanner (11)
- [] (51)
- abort (21)
-
add
_ trace _ func (11) - application= (11)
- ascend (22)
- backtrace (11)
- binding (2)
-
callee
_ id (11) - close (9)
-
connect
_ nonblock (11) - coverage (7)
-
deconstruct
_ keys (2) - default (11)
-
default
_ event _ sources (11) - delete (11)
- deq (22)
- descend (22)
- display (11)
-
drb
/ gw (11) - each (33)
-
enum
_ for (22) -
eval
_ script (6) - fail (33)
- feed (11)
- fetch (33)
- fiddle (11)
-
field
_ size _ limit (11) - filename (11)
- filename= (11)
- generate (11)
- handler= (11)
- header (11)
- inflate (11)
- inspect (16)
-
instance
_ variable _ get (11) - irb (11)
-
irb
/ xmp (11) - lambda (17)
- lambda? (11)
- line (11)
- load (11)
-
local
_ host= (11) -
local
_ port= (11) - loop (18)
- match (22)
- match? (11)
-
matched
_ size (11) - max (44)
-
method
_ id (11) - min (44)
-
minitest
/ unit (1) - name (22)
- name= (11)
-
net
/ http (11) -
next
_ values (11) -
next
_ wait (6) - notify (11)
- on (22)
-
on
_ event (11) -
on
_ event _ with _ outargs (11) - open (44)
- pack (16)
- params (11)
- parse (38)
- parse! (8)
- pass (11)
- pathmap (11)
-
peek
_ values (11) -
pending
_ interrupt? (11) - pop (22)
- popen (154)
-
primitive
_ convert (44) - private (16)
- proc (18)
- progids (11)
- raise (48)
- release (11)
-
renegotiation
_ cb= (11) - resume (11)
-
rexml
/ document (11) -
rexml
/ parsers / pullparser (11) -
rexml
/ parsers / sax2parser (11) -
rexml
/ parsers / streamparser (11) -
rinda
/ rinda (11) - rss (11)
-
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) - send (11)
-
set
_ trace _ func (11) - sexp (11)
-
sexp
_ raw (11) - shift (22)
- sleep (11)
-
source
_ location (11) - start (22)
-
super
_ method (10) - test (18)
-
to
_ enum (22) -
to
_ json (11) -
to
_ s (16) - tsort (11)
- unparse (11)
- unscan (11)
- value (11)
-
write
_ headers? (11) - yield (11)
- クラス/メソッドの定義 (11)
- セキュリティモデル (11)
- メソッド呼び出し(super・ブロック付き・yield) (11)
- 制御構造 (11)
- 手続きオブジェクトの挙動の詳細 (11)
- 演算子式 (11)
検索結果
先頭5件
- Gem
:: DependencyInstaller . new(options = {}) -> Gem :: DependencyInstaller - ERB
. new(str , safe _ level=nil , trim _ mode=nil , eoutvar=& # 39; _ erbout& # 39;) -> ERB - Range
. new(first , last , exclude _ end = false) -> Range - Rake
:: PackageTask . new(name = nil , version = nil) {|t| . . . } -> Rake :: PackageTask - ERB
. new(str , safe _ level=NOT _ GIVEN , trim _ mode=NOT _ GIVEN , eoutvar=NOT _ GIVEN , trim _ mode: nil , eoutvar: & # 39; _ erbout& # 39;) -> ERB
-
Gem
:: DependencyInstaller . new(options = {}) -> Gem :: DependencyInstaller (21225.0) -
自身を初期化します。
...s を検索します),
:both (:local, :remote の両方を検索します) のいずれかを指定可能です。
: :env_shebang
Gem::Installer.new を参照してください。
: :force
バージョンチェックとセキュリティポリシーのチェックを行わずにインストー......シーが指定されている場合は上記のチェックを
実行します。
: :format_executable
Gem::Installer.new を参照してください。
: :ignore_dependencies
依存している Gem をインストールしません。
: :install_dir
Gem をインストールするディ......シーを指定します。
: :user_install
false を指定するとユーザのホームディレクトリにインストールしません。
nil を指定するとユーザのホームディレクトリにインストールしようとしますが、
警告を表示します。
: :wrappers... -
ERB
. new(str , safe _ level=nil , trim _ mode=nil , eoutvar=& # 39; _ erbout& # 39;) -> ERB (18363.0) -
eRubyスクリプト から ERB オブジェクトを生成して返します。
...@price = price
end
def build
b = binding
# create and run templates, filling member data variables
ERB.new(<<-'END_PRODUCT'.gsub(/^\s+/, ""), 0, "", "@product").result b
<%= PRODUCT[:name] %>
<%= PRODUCT[:desc] %>
END_PRODUCT
ERB.new(<<-'END_PRICE'.gsub(/^\s+....../, ""), 0, "", "@price").result b
<%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<%= PRODUCT[:desc] %>
END_PRICE
end
end
# setup template data
listings = Listings.new
listings.build
puts listings.product + "\n" + listings.price
# Chicken Fried Steak
# A well messages pattie, bre... -
Range
. new(first , last , exclude _ end = false) -> Range (18316.0) -
first から last までの範囲オブジェクトを生成して返しま す。
...て返しま
す。
exclude_end が真ならば終端を含まない範囲オブジェクトを生
成します。exclude_end 省略時には終端を含みます。
@param first 最初のオブジェクト
@param last 最後のオブジェクト
@param exclude_end 真をセットした場合終......> last が nil の場合に発生します
//emlist[例: 整数の範囲オブジェクトの場合][ruby]{
Range.new(1, 10) # => 1..10
Range.new(1, 10, true) # => 1...10
//}
//emlist[例: 日付オブジェクトの範囲オブジェクトの場合][ruby]{
require 'date'
Range.new(Date.toda......ire 'ipaddr'
Range.new(IPAddr.new("192.0.2.1"), IPAddr.new("192.0.2.3")).each {|ip| puts ip}
# => 192.0.2.1
# 192.0.2.2
# 192.0.2.3
//}
//emlist[例: 自作のオブジェクトの場合][ruby]{
MyInteger = Struct.new(:value) do
def succ
self.class.new(value + 1)
end
def <=>(other)... -
Rake
:: PackageTask . new(name = nil , version = nil) {|t| . . . } -> Rake :: PackageTask (18315.0) -
自身を初期化してタスクを定義します。
...]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.package_dir = "./pkg"
package_task.package_files.include("lib/**/*")
end
# rake -T を実行すると以下になる
# => rake clobber_package # Remove pac... -
ERB
. new(str , safe _ level=NOT _ GIVEN , trim _ mode=NOT _ GIVEN , eoutvar=NOT _ GIVEN , trim _ mode: nil , eoutvar: & # 39; _ erbout& # 39;) -> ERB (18262.0) -
eRubyスクリプト から ERB オブジェクトを生成して返します。
...product
@price = price
end
def build
b = binding
# create and run templates, filling member data variables
ERB.new(<<~'END_PRODUCT', eoutvar: "@product").result b
<%= PRODUCT[:name] %>
<%= PRODUCT[:desc] %>
END_PRODUCT
ERB.new(<<~'END_PRICE', eoutvar: "@price......").result b
<%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<%= PRODUCT[:desc] %>
END_PRICE
end
end
# setup template data
listings = Listings.new
listings.build
puts listings.product + "\n" + listings.price
# Chicken Fried Steak
# A well messages pattie, breaded and fried.
#
# C... -
ERB
. new(str , trim _ mode: nil , eoutvar: & # 39; _ erbout& # 39;) -> ERB (18262.0) -
eRubyスクリプト から ERB オブジェクトを生成して返します。
...product
@price = price
end
def build
b = binding
# create and run templates, filling member data variables
ERB.new(<<~'END_PRODUCT', eoutvar: "@product").result b
<%= PRODUCT[:name] %>
<%= PRODUCT[:desc] %>
END_PRODUCT
ERB.new(<<~'END_PRICE', eoutvar: "@price......").result b
<%= PRODUCT[:name] %> -- <%= PRODUCT[:cost] %>
<%= PRODUCT[:desc] %>
END_PRICE
end
end
# setup template data
listings = Listings.new
listings.build
puts listings.product + "\n" + listings.price
# Chicken Fried Steak
# A well messages pattie, breaded and fried.
#
# C... -
Enumerator
:: Lazy . new(obj , size=nil) {|yielder , *values| . . . } -> Enumerator :: Lazy (18244.0) -
Lazy Enumerator を作成します。Enumerator::Lazy#force メソッドなどに よって列挙が実行されたとき、objのeachメソッドが実行され、値が一つずつ ブロックに渡されます。ブロックは、yielder を使って最終的に yield される値を 指定できます。
...dule Enumerable
def filter_map(&block)
map(&block).compact
end
end
class Enumerator::Lazy
def filter_map
Lazy.new(self) do |yielder, *values|
result = yield *values
yielder << result if result
end
end
end
1.step.lazy.filter_map{|i| i*i if i.even?}.first(5)
# =>......[4, 16, 36, 64, 100]
//}
@raise ArgumentError 引数を指定しなかった場合、ブロックを指定しなかった場合に発生します。
@see Enumerator.new... -
CSV
. new(data , options = Hash . new) -> CSV (18226.0) -
このメソッドは CSV ファイルを読み込んだり、書き出したりするために String か IO のインスタンスをラップします。
...r" の並びまでを読みます。
A sequence will be selected even if it occurs in a quoted field, assuming that you
would have the same line endings there. If none of those sequences is
found, +data+ is ARGF, Object::STDIN, Object::STDOUT, or
Object::STDERR, or the stream is only avail......limit to
prevent what are effectively DoS attacks on the parser. However, this
limit can cause a legitimate parse to fail and thus is set to +nil+, or off,
by default.
: :converters
CSV::Converters から取り出した名前の配列です。変換器が一つだけ
の場合は配列......EOS
File.write("test.csv", users)
File.open("test.csv", "r") do |f|
csv = CSV.new(f, headers: true)
csv.class # => CSV
csv.first # => #<CSV::Row "id":"1" "first name":"taro" "last name":"tanaka" "age":"20">
end
//}
//emlist[例 文字列の読み込み][ruby]{
require "csv"
users =<<-EOS
i... -
Rake
:: TaskArguments . new(names , values , parent = nil) (18220.0) -
自身を初期化します。
...記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments1 = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments2 = Rake::TaskArguments.new(["name3", "name4"], ["value3", "value4"], arguments1)
p arguments1 # => #<Rake::TaskArguments name1: value......1, name2: value2>
p arguments2 # => #<Rake::TaskArguments name3: value3, name4: value4>
p arguments2["name1"] # => "value1"
p arguments2["name3"] # => "value3"
end
//}... -
OptionParser
. new(banner = nil , width = 32 , indent = & # 39; & # 39; * 4) -> OptionParser (18216.0) -
OptionParser オブジェクトを生成して返します。
...まり、以下のような書き方が可能です。
//emlist[][ruby]{
require 'optparse'
OptionParser.new do |opt|
opt.on('-a') {|v| p v }
opt.on('-b') {|v| p v }
opt.parse!(ARGV)
end
//}
@param banner ヘルプ(サマリ)の最初の部分に表示される、アプリケーション... -
OptionParser
. new(banner = nil , width = 32 , indent = & # 39; & # 39; * 4) {|opt| . . . } -> OptionParser (18216.0) -
OptionParser オブジェクトを生成して返します。
...まり、以下のような書き方が可能です。
//emlist[][ruby]{
require 'optparse'
OptionParser.new do |opt|
opt.on('-a') {|v| p v }
opt.on('-b') {|v| p v }
opt.parse!(ARGV)
end
//}
@param banner ヘルプ(サマリ)の最初の部分に表示される、アプリケーション... -
WEBrick
:: HTTPProxyServer . new(config , default = WEBrick :: Config :: HTTP) -> WEBrick :: HTTPProxyServer (18155.0) -
プロクシオブジェクトを生成して返します。
...定を保存したハッシュを指定します。
設定として有効なハッシュのキーとその値は WEBrick::HTTPServer.new と同じです。
それに加えて以下のキーが有効です。
: :ProxyAuthProc
プロクシ認証を行う Proc オブジ......。
認証に失敗した場合 proc は適切な例外を発生させなければいけません。nil を指定した場合すべての接続を
受け付けます。デフォルトは nil です。通常は WEBrick::HTTPAuth::ProxyBasicAuth か
WEBrick::HTTPAuth::ProxyDigestAuth を使用......xy-Authenticate'] = 'Basic realm="WEBrick Proxy"'
raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
else
# 略
end
}
s = WEBrick::HTTPProxyServer.new(ProxyAuthProc: auth_proc, Port: 8080)
//}
: :ProxyContentHandler
接続先の HTTP サーバからの内容を処理する Pr...