418件ヒット
[1-100件を表示]
(0.108秒)
ライブラリ
クラス
-
ARGF
. class (22) - IO (22)
-
IRB
:: Context (33) -
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (11) -
JSON
:: State (11) - Module (11)
- Object (33)
-
Rake
:: FileList (22) -
Resolv
:: DNS :: Name (11) - StringIO (22)
- StringScanner (22)
- Struct (6)
- Symbol (10)
- Time (22)
-
WIN32OLE
_ PARAM (11)
モジュール
- FileUtils (11)
-
GC
:: Profiler (33) - ObjectSpace (33)
- Psych (12)
-
RubyVM
:: AbstractSyntaxTree (2)
キーワード
- === (11)
- FalseClass (11)
- Marshal フォーマット (11)
- Ruby用語集 (11)
-
beginning
_ of _ line? (11) - bigdecimal (11)
- bol? (11)
-
check
_ circular? (11) - disable (11)
-
each
_ object (22) - enabled? (11)
-
end
_ with? (5) - eof (33)
- eof? (33)
- getlocal (11)
-
ignore
_ eof (11) -
ignore
_ eof= (11) -
ignore
_ eof? (11) -
instance
_ of? (11) -
is
_ a? (22) -
kind
_ of? (22) - localtime (11)
-
memsize
_ of _ all (11) - new (6)
- output? (11)
-
raw
_ data (11) -
readable
_ atfer _ eof? (22) -
remove
_ entry _ secure (11) -
safe
_ load (12) -
start
_ with? (5) -
subdomain
_ of? (11) - 変数と定数 (3)
検索結果
先頭5件
- RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node - IRB
:: InputMethod # readable _ atfer _ eof? -> false - IRB
:: ReadlineInputMethod # readable _ atfer _ eof? -> false - ObjectSpace
. # memsize _ of _ all(klass = nil) -> Integer - StringScanner
# beginning _ of _ line? -> bool
-
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (18517.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...ます。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコードのテキストを取得できます。
@param keep_tokens true を指定すると、 Node#token が利用できます。
@param error_tolerant true を指定する....../emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.of(proc {1 + 2})
# => (SCOPE@2:38-2:45
# tbl: []
# args: nil
# body:
# (OPCALL@2:39-2:44 (LIT@2:39-2:40 1) :+
# (LIST@2:43-2:44 (LIT@2:43-2:44 2) nil)))
def hello
puts "hello, world"
end
pp RubyVM::AbstractSyntaxTree.of(me......thod(:hello))
# => (SCOPE@5:0-7:3
# tbl: []
# args:
# (ARGS@5:9-5:9
# pre_num: 0
# pre_init: nil
# opt: nil
# first_post: nil
# post_num: 0
# post_init: nil
# rest: nil
# kw: nil
# kwrest: nil
# block: nil)
# bod... -
IRB
:: InputMethod # readable _ atfer _ eof? -> false (12317.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
...入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。... -
IRB
:: ReadlineInputMethod # readable _ atfer _ eof? -> false (12317.0) -
入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。
...入力が EOF(End Of File)に達した後も読み込みが行えるかどうかを返します。... -
ObjectSpace
. # memsize _ of _ all(klass = nil) -> Integer (12231.0) -
すべての生存しているオブジェクトが消費しているメモリ使用量をバイト単位 で返します。
...すべての生存しているオブジェクトが消費しているメモリ使用量をバイト単位
で返します。
@param klass 指定したクラスのインスタンスのメモリ使用量を返します。省略
した場合はすべてのクラスのインスタンス......のような Ruby のコードで定義できます。
//emlist[例][ruby]{
def memsize_of_all klass = false
total = 0
ObjectSpace.each_object{|e|
total += ObjectSpace.memsize_of(e) if klass == false || e.kind_of?(klass)
}
total
end
//}
戻り値の内容は完全ではない事に注......くまでもヒ
ントとして扱う必要があります。特に T_DATA の値は正しくないでしょう。
また、同様に戻り値の内容は malloc されたメモリの合計でもない事に注意し
てください。
本メソッドは C Ruby 以外では動作しません。... -
StringScanner
# beginning _ of _ line? -> bool (12229.0) -
スキャンポインタが行頭を指しているなら true を、 行頭以外を指しているなら false を返します。
...ているなら false を返します。
行頭の定義は、文字列先頭かまたは \n の直後を指していることです。
文字列末尾は必ずしも行頭ではありません。
//emlist[例][ruby]{
require 'strscan'
s = StringScanner.new("test\nstring")
s.bol? # => true......s.scan(/\w+/)
s.bol? # => false
s.scan(/\n/)
s.bol? # => true
s.scan(/\w+/)
s.bol? # => false
//}... -
GC
:: Profiler . enabled? -> bool (12128.0) -
GC のプロファイラを起動中であれば true、停止中であれば false を返します。
...プロファイラを起動中であれば true、停止中であれば false を返します。
例:
GC::Profiler.enabled? #=> false
GC::Profiler.enable
GC::Profiler.enabled? #=> true
GC::Profiler.disable
GC::Profiler.enabled? #=> false
@see GC::Profiler.enable, GC::Profiler.disable... -
GC
:: Profiler . disable -> nil (12106.0) -
GC のプロファイラを停止します。
...停止します。
例:
GC::Profiler.disable
GC::Profiler.enabled? #=> false
このメソッドでは、蓄積したプロファイル情報は破棄しません。
破棄したい場合は GC::Profiler.clear を呼び出してください。
@see GC::Profiler.enable, GC::Profiler.enabled?... -
JSON
:: Ext :: Generator :: GeneratorMethods :: FalseClass (12016.0) -
Alias of JSON::Generator::GeneratorMethods::FalseClass
...Alias of JSON::Generator::GeneratorMethods::FalseClass... -
Resolv
:: DNS :: Name # subdomain _ of?(other) -> bool (9261.0) -
other が self のサブドメインであるかどうかを返します。
...r が self のサブドメインであるかどうかを返します。
//emlist[][ruby]{
require "resolv"
domain = Resolv::DNS::Name.create("y.z")
p Resolv::DNS::Name.create("w.x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::Name.create("x.y.z").subdomain_of?(domain) #=> true
p Resolv::DNS::......Name.create("y.z").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("z").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("x.y.z.").subdomain_of?(domain) #=> false
p Resolv::DNS::Name.create("w.z").subdomain_of?(domain) #=> false
//}... -
ARGF
. class # eof -> bool (9228.0) -
現在開いているファイルがEOFに達したらtrueを返します。そうでない場合は falseを返します。
...イルがEOFに達したらtrueを返します。そうでない場合は
falseを返します。
@raise IOError ファイルがopenされていない場合に発生します。
$ echo "eof" | ruby argf.rb
ARGF.eof? # => false
3.times { ARGF.readchar }
ARGF.eof?......# => false
ARGF.readchar # => "\n"
ARGF.eof? # => true
@see IO#eof, IO#eof?...