別のキーワード
ライブラリ
- ビルトイン (347)
-
cgi
/ core (12) - fileutils (144)
-
mutex
_ m (12) - pp (12)
- psych (29)
- rake (252)
-
rake
/ packagetask (24) -
rexml
/ streamlistener (12) -
rubygems
/ requirement (12) -
rubygems
/ specification (12) - socket (12)
- thread (4)
- uri (36)
クラス
- Addrinfo (12)
- Array (69)
- CGI (12)
- Encoding (24)
-
Enumerator
:: Lazy (24) -
Gem
:: Requirement (12) -
Gem
:: Specification (12) - Object (12)
- PP (12)
-
Rake
:: FileList (216) -
Rake
:: NameSpace (12) -
Rake
:: PackageTask (24) - SignalException (36)
- String (24)
- ThreadGroup (36)
-
URI
:: MailTo (36)
モジュール
- Enumerable (72)
- FileUtils (144)
- Psych (29)
-
REXML
:: StreamListener (12) -
Rake
:: Cloneable (24) -
RubyVM
:: AbstractSyntaxTree (30)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - == (12)
- ConditionVariable (12)
- DOSISH 対応 (12)
-
Mutex
_ m (12) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - ReFe (12)
- Rubyの起動 (12)
- SizedQueue (12)
- [] (12)
- add (12)
-
as
_ list (12) - canonname (12)
- cgi (12)
- chmod (12)
-
chmod
_ R (12) - chown (12)
-
chown
_ R (12) -
clear
_ exclude (12) - clone (12)
- crypt (12)
- debug (12)
- dup (12)
-
each
_ cons (24) -
each
_ slice (24) - egrep (12)
- entitydecl (12)
-
excluded
_ from _ list? (12) - existing (12)
- existing! (12)
- ext (12)
- gsub! (12)
- header (12)
- headers (12)
- import (12)
-
is
_ a? (12) -
kind
_ of? (12) -
load
_ stream (24) - makedirs (12)
- mathn (4)
-
mkdir
_ p (12) - mkpath (12)
- monitor (12)
-
name
_ list (12) -
net
/ ftp (12) - new (60)
- of (10)
- optparse (12)
- pack (21)
- pack テンプレート文字列 (12)
-
package
_ files (12) -
package
_ files= (12) - parse (10)
-
parse
_ file (10) - pathmap (12)
- product (24)
-
rb
_ load (12) - rdoc (12)
-
rdoc
/ markdown (12) -
rdoc
/ markup (12) - remove (12)
- resolve (12)
-
respond
_ to? (12) - rm (12)
-
rm
_ r (12) - rss (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 8 . 3 feature (12) -
ruby 1
. 8 . 4 feature (12) -
ruby 1
. 9 feature (12) - rubygems (12)
-
rubygems
/ commands / cert _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / lock _ command (12) -
rubygems
/ commands / sources _ command (12) -
rubygems
/ dependency _ list (12) -
rubygems
/ security (12) -
safe
_ load (5) - seplist (12)
- sub! (12)
-
to
_ a (12) -
to
_ ary (12) -
to
_ mailtext (12) -
to
_ rfc822text (12) -
to
_ s (12) - touch (12)
- unpack (12)
- uptodate? (12)
-
webrick
/ cgi (12) - zip (72)
- セキュリティモデル (12)
- 多言語化 (12)
- 正規表現 (12)
- 演算子式 (12)
検索結果
先頭5件
- RubyVM
:: AbstractSyntaxTree . parse(string) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . parse(string , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . parse _ file(pathname) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . parse _ file(pathname , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node - RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node
-
RubyVM
:: AbstractSyntaxTree . parse(string) -> RubyVM :: AbstractSyntaxTree :: Node (23124.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
...ドを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@raise SyntaxError string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9......# tbl: [:x]
# args: nil
# body:
# (LASGN@1:0-1:9 :x
# (OPCALL@1:4-1:9 (LIT@1:4-1:5 1) :+ (LIST@1:8-1:9 (LIT@1:8-1:9 2) nil))))
//}......文字列を抽象構文木にパースし、その木の根ノードを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコ......string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9
# tbl: [:x]
# args: nil
# body:
# (LASGN@1:0-1:9 :x
# (OPCALL@1:4-1:9 (LIT@1:4-1:5 1) :+ (LIST@1:8-1:9 (......LIT@1:8-1:9 2) nil))))
pp RubyVM::AbstractSyntaxTree.parse("x = 1; p(x; y=2", error_tolerant: true)
# => (SCOPE@1:0-1:15
# tbl: [:x, :y]
# args: nil
# body: (BLOCK@1:0-1:15 (LASGN@1:0-1:5 :x (LIT@1:4-1:5 1)) (ERROR@1:7-1:11) (LASGN@1:12-1:15 :y (LIT@1:14-1:15 2))))
//}... -
RubyVM
:: AbstractSyntaxTree . parse(string , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (23124.0) -
文字列を抽象構文木にパースし、その木の根ノードを返します。
...文字列を抽象構文木にパースし、その木の根ノードを返します。
@param string パースする対象の Ruby のコードを文字列で指定します。
@param keep_script_lines true を指定すると、 Node#script_lines でノードと関連づけられたソースコ......string が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse("x = 1 + 2")
# => (SCOPE@1:0-1:9
# tbl: [:x]
# args: nil
# body:
# (LASGN@1:0-1:9 :x
# (OPCALL@1:4-1:9 (LIT@1:4-1:5 1) :+ (LIST@1:8-1:9 (......LIT@1:8-1:9 2) nil))))
pp RubyVM::AbstractSyntaxTree.parse("x = 1; p(x; y=2", error_tolerant: true)
# => (SCOPE@1:0-1:15
# tbl: [:x, :y]
# args: nil
# body: (BLOCK@1:0-1:15 (LASGN@1:0-1:5 :x (LIT@1:4-1:5 1)) (ERROR@1:7-1:11) (LASGN@1:12-1:15 :y (LIT@1:14-1:15 2))))
//}... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname) -> RubyVM :: AbstractSyntaxTree :: Node (23124.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# body:
# (FCALL@1:0-1:50 :pp
# (LIST@1:3-1:50
# (C......ALL@1:3-1:50
# (COLON2@1:3-1:29 (CONST@1:3-1:9 :RubyVM) :AbstractSyntaxTree)
# :parse_file (LIST@1:41-1:49 (STR@1:41-1:49 "") nil)) nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . parse _ file(pathname , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (23124.0) -
pathname のファイルを読み込み、その内容を抽象構文木にパースし、その木の根ノードを返します。
...取得された文字列が Ruby のコードとして正しくない場合に発生します。
//emlist[][ruby]{
pp RubyVM::AbstractSyntaxTree.parse_file(__FILE__)
# => (SCOPE@1:0-1:50
# tbl: []
# args: nil
# body:
# (FCALL@1:0-1:50 :pp
# (LIST@1:3-1:50
# (C......ALL@1:3-1:50
# (COLON2@1:3-1:29 (CONST@1:3-1:9 :RubyVM) :AbstractSyntaxTree)
# :parse_file (LIST@1:41-1:49 (STR@1:41-1:49 "") nil)) nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc) -> RubyVM :: AbstractSyntaxTree :: Node (23118.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...ます。
//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::AbstractSynt......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)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
RubyVM
:: AbstractSyntaxTree . of(proc , keep _ script _ lines: false , error _ tolerant: false , keep _ tokens: false) -> RubyVM :: AbstractSyntaxTree :: Node (23118.0) -
引数 proc に渡したProcやメソッドオブジェクトの抽象構文木を返します。
...ます。
//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::AbstractSynt......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)
# body:
# (FCALL@6:2-6:21 :puts (LIST@6:7-6:21 (STR@6:7-6:21 "hello, world") nil)))
//}... -
Encoding
. list -> [Encoding] (18119.0) -
現在ロードされているエンコーディングのリストを返します。
...リストを返します。
//emlist[例][ruby]{
Encoding.list
# => [#<Encoding:ASCII-8BIT>, #<Encoding:EUC-JP>,
# #<Encoding:Shift_JIS>, #<Encoding:UTF-8>,
# #<Encoding:ISO-2022-JP (dummy)>]
Encoding.find("US-ASCII")
# => #<Encoding:US-ASCII>
Encoding.list
# => [#<Encoding:ASCII-8BIT>, #... -
Gem
:: Specification . list -> Array (18117.0) -
実行中の Ruby のインスタンスで作成された Gem::Specification のインスタンスを返します。
...実行中の Ruby のインスタンスで作成された Gem::Specification のインスタンスを返します。... -
ThreadGroup
# list -> [Thread] (18113.0) -
self に属するスレッドの配列を返します。 version 1.8 では、aborting 状態であるスレッド も要素に含まれます。つまり「生きている」スレッドの配列を返します。
...するスレッドの配列を返します。
version 1.8 では、aborting 状態であるスレッド
も要素に含まれます。つまり「生きている」スレッドの配列を返します。
//emlist[例][ruby]{
ThreadGroup::Default.list # => [#<Thread:0x00007f8f13867078 run>]
//}... -
rubygems
/ commands / list _ command (12012.0) -
Gem パッケージの名前を前方一致で検索するためのライブラリです。
...Gem パッケージの名前を前方一致で検索するためのライブラリです。
Usage: gem list [STRING] [options]
Options:
-i, --[no-]installed Check for installed gem
-v, --version VERSION 指定されたバージョンの一覧を出力しま......た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
STRING 探したい Gem の名前を前方一致で... -
rubygems
/ dependency _ list (12000.0) -
Gem の依存関係を扱うためのライブラリです。
Gem の依存関係を扱うためのライブラリです。 -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (9143.0) -
与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。
...す。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb")
file_list.exclude("test1.rb")
file_list.excluded_from_list?("test1.rb")......# => true
file_list.excluded_from_list?("test2.rb") # => false
end
//}...