1291件ヒット
[1-100件を表示]
(0.029秒)
ライブラリ
- ビルトイン (484)
-
cgi
/ core (36) - cmath (6)
- csv (24)
- dbm (48)
- erb (36)
- gdbm (48)
-
irb
/ ext / math-mode (4) - matrix (24)
- mkmf (48)
-
net
/ http (12) - pathname (51)
- rake (12)
-
rdoc
/ context (24) -
rexml
/ parsers / sax2parser (60) -
rubygems
/ version (12) - sdbm (48)
- tsort (92)
-
webrick
/ httpauth / htdigest (12) -
webrick
/ httpauth / htpasswd (12) -
webrick
/ httpresponse (60) -
webrick
/ httpserver (24) -
webrick
/ httputils (12)
クラス
-
CSV
:: Row (24) - DBM (48)
- ERB (12)
- GDBM (48)
-
Gem
:: Version (12) - Hash (48)
-
IRB
:: Context (4) - Method (24)
- Module (180)
- Object (60)
- Pathname (51)
-
RDoc
:: Context (24) -
REXML
:: Parsers :: SAX2Parser (60) -
Rake
:: FileList (12) - Refinement (4)
- SDBM (48)
- String (12)
- UnboundMethod (12)
- Vector (24)
-
WEBrick
:: HTTPResponse (60) -
WEBrick
:: HTTPServer (24)
モジュール
-
CGI
:: QueryExtension (36) -
ERB
:: Util (24) - Enumerable (24)
- Kernel (60)
-
Process
:: GID (24) -
Process
:: UID (24) - TSort (92)
-
WEBrick
:: HTTPUtils (12)
オブジェクト
- ENV (48)
キーワード
- < (12)
- <= (12)
- <=> (12)
- > (12)
- >= (12)
- CMath (6)
- HTTPExceptions (12)
- Htdigest (12)
- Htpasswd (12)
- Math (12)
-
NEWS for Ruby 2
. 1 . 0 (12) -
NEWS for Ruby 2
. 6 . 0 (7) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) -
add
_ to (12) -
bigdecimal
/ math (12) - bind (12)
- body= (12)
- cgi (12)
- chunked= (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) - constants (12)
-
content
_ length (12) -
content
_ length= (12) -
def
_ module (12) - each (24)
-
each
_ child (24) -
each
_ entry (39) -
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (46) - entries (12)
- eql? (12)
-
has
_ key? (72) - header? (12)
-
html
_ escape (12) -
import
_ methods (4) - include? (96)
-
initialize
_ methods _ etc (12) - inspect (12)
- key? (72)
- listen (60)
-
math
_ mode= (4) - member? (60)
-
method
_ defined? (12) - methods (12)
-
mime
_ type (12) - mkmf (12)
- mount (12)
-
private
_ instance _ methods (12) -
private
_ method _ defined? (12) -
private
_ methods (12) -
protected
_ method _ defined? (12) -
protected
_ methods (12) -
public
_ method _ defined? (12) -
public
_ methods (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby2
_ keywords (12) -
rubygems
/ commands / install _ command (12) -
singleton
_ methods (12) - switch (48)
- syscall (12)
-
to
_ s (24) -
try
_ cpp (24) -
tsort
_ each (23) -
virtual
_ host (12) -
with
_ config (24)
検索結果
先頭5件
-
Rake
:: FileList # include(*filenames) -> self (18119.0) -
ファイル名のパターンを追加リストに登録します。 配列が与えられた場合、配列の各要素が追加されます。
...ターンを追加リストに登録します。
配列が与えられた場合、配列の各要素が追加されます。
@param filenames 追加するファイル名のパターンを指定します。
例:
file_list.include("*.java", "*.cfg")
file_list.include %w( math.c lib.h *.o )... -
ERB
:: Util . # h(s) -> String (18107.0) -
文字列 s を HTML用にエスケープした文字列を返します。
...文字列 s を HTML用にエスケープした文字列を返します。
文字列 s 中に含まれる &"<> を、実体参照 & " < > にそれぞれ変更した文字列を返します
(CGI.escapeHTMLとほぼ同じです)。
@param s HTMLエスケープを行う文字列
//......emlist[例][ruby]{
require "erb"
include ERB::Util
puts html_escape("is a > 0 & a < 10?")
# is a > 0 & a < 10?
//}... -
Hash
# has _ key?(key) -> bool (9101.0) -
ハッシュが key をキーとして持つ時真を返します。
...ハッシュが key をキーとして持つ時真を返します。
@param key 探索するキーを指定します。
//emlist[][ruby]{
p({1 => "one"}.key?(1)) # => true
p({1 => "one"}.key?(2)) # => false
//}
@see Hash#value?... -
Hash
# include?(key) -> bool (9101.0) -
ハッシュが key をキーとして持つ時真を返します。
...ハッシュが key をキーとして持つ時真を返します。
@param key 探索するキーを指定します。
//emlist[][ruby]{
p({1 => "one"}.key?(1)) # => true
p({1 => "one"}.key?(2)) # => false
//}
@see Hash#value?... -
WEBrick
:: HTTPAuth :: Htdigest (9006.0) -
Apache の htdigest 互換のクラス。
...Apache の htdigest 互換のクラス。
例
require 'webrick'
include WEBrick
htd = HTTPAuth::Htdigest.new('dot.htdigest')
htd.set_passwd('realm', 'username', 'supersecretpass')
htd.flush
htd2 = HTTPAuth::Htdigest.new('dot.htdigest')
p htd2.get_passwd('realm', 'username', false) == '65fe0... -
WEBrick
:: HTTPAuth :: Htpasswd (9006.0) -
Apache の htpasswd 互換のクラスです。 .htpasswd ファイルを新しく作成することも出来ます。 htpasswd -m (MD5) や -s (SHA) で作成された .htpasswd ファイルには対応していません。
...Apache の htpasswd 互換のクラスです。
.htpasswd ファイルを新しく作成することも出来ます。
htpasswd -m (MD5) や -s (SHA) で作成された .htpasswd ファイルには対応していません。
例
require 'webrick'
include WEBrick
htpd = HTTPAuth::Htpasswd.new('......dot.htpasswd')
htpd.set_passwd(nil, 'username', 'supersecretpass')
htpd.flush
htpd2 = HTTPAuth::Htpasswd.new('dot.htpasswd')
pass = htpd2.get_passwd(nil, 'username', false)
p pass == 'supersecretpass'.crypt(pass[0,2])... -
Pathname
# each _ child(with _ directory = true) -> Enumerator (6212.0) -
self.children(with_directory).each と同じです。
...self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:......Pathname:/usr/local/include>
# => #<Pathname:/usr/local/lib>
# => #<Pathname:/usr/local/opt>
# => #<Pathname:/usr/local/sbin>
# => #<Pathname:/usr/local/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathna......me:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children... -
Pathname
# each _ child(with _ directory = true) {|pathname| . . . } -> [Pathname] (6212.0) -
self.children(with_directory).each と同じです。
...self.children(with_directory).each と同じです。
@param with_directory 偽を指定するとファイル名のみ返します。デフォルトは真です。
//emlist[例][ruby]{
require "pathname"
Pathname("/usr/local").each_child {|f| p f }
# => #<Pathname:/usr/local/bin>
# => #<Pathname:......Pathname:/usr/local/include>
# => #<Pathname:/usr/local/lib>
# => #<Pathname:/usr/local/opt>
# => #<Pathname:/usr/local/sbin>
# => #<Pathname:/usr/local/share>
# => #<Pathname:/usr/local/var>
Pathname("/usr/local").each_child(false) {|f| p f }
# => #<Pathname:bin>
# => #<Pathname:etc>
# => #<Pathna......me:include>
# => #<Pathname:lib>
# => #<Pathname:opt>
# => #<Pathname:sbin>
# => #<Pathname:share>
# => #<Pathname:var>
//}
@see Pathname#children... -
Object
# methods(include _ inherited = true) -> [Symbol] (6207.0) -
そのオブジェクトに対して呼び出せるメソッド名の一覧を返します。 このメソッドは public メソッドおよび protected メソッドの名前を返します。
...の名前を返します。
ただし特別に、引数が偽の時は Object#singleton_methods(false) と同じになっています。
@param include_inherited 引数が偽の時は Object#singleton_methods(false) と同じになります。
//emlist[例1][ruby]{
class Parent
private; def......eton() end
end
# あるオブジェクトの応答できるメソッドの一覧を得る。
p obj.methods(false)
p obj.public_methods(false)
p obj.private_methods(false)
p obj.protected_methods(false)
# 実行結果
[:protected_singleton, :public_singleton]
[:public_singleton, :public_foo]
[:p......ている。
p obj.methods(true) - Object.instance_methods(true)
p obj.public_methods(true) - Object.public_instance_methods(true)
p obj.private_methods(true) - Object.private_instance_methods(true)
p obj.protected_methods(true) - Object.protected_instance_methods(true)
# 実行結...