256件ヒット
[101-200件を表示]
(0.068秒)
別のキーワード
ライブラリ
- ビルトイン (23)
- abbrev (12)
- etc (12)
- rake (36)
- ripper (12)
-
ripper
/ filter (24) -
ripper
/ lexer (72) -
rubygems
/ requirement (12) - socket (12)
クラス
-
Gem
:: Requirement (12) -
Rake
:: Application (36) - Ripper (48)
-
Ripper
:: Filter (12) -
Ripper
:: Lexer (36) -
RubyVM
:: InstructionSequence (12) - Socket (12)
- String (1)
モジュール
- Abbrev (12)
- Etc (12)
-
RubyVM
:: AbstractSyntaxTree (10)
キーワード
- Filter (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
NEWS for Ruby 3
. 1 . 0 (4) - abbrev (12)
-
append
_ as _ bytes (1) -
compile
_ option (12) - filename (24)
- getaddrinfo (12)
- irb (12)
- lex (24)
- name (12)
-
original
_ dir (12) - parse (22)
-
pretty
_ print (12) - rakefile (12)
- slice (12)
- tokenize (24)
- uname (12)
検索結果
先頭5件
-
Ripper
# filename -> String (3117.0) -
自身の持つ Ruby プログラムのファイル名を文字列で返します。
...自身の持つ Ruby プログラムのファイル名を文字列で返します。... -
Ripper
:: Filter # filename -> String (3117.0) -
Ruby プログラムのファイル名を文字列で返します。
...
Ruby プログラムのファイル名を文字列で返します。... -
Ripper
:: Lexer # lex -> [[Integer , Integer] , Symbol , String] (3117.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
ライブラリ内部で使用します。 Ripper.lex を使用してください。... -
Ripper
:: Lexer # parse -> [[Integer , Integer] , Symbol , String] (3117.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た だし Ripper::Lexer#lex と違い、結果をソートしません。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。た
だし Ripper::Lexer#lex と違い、結果をソートしません。
ライブラリ内部で使用します。... -
Ripper
:: Lexer # tokenize -> [String] (3117.0) -
自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
...自身の持つ Ruby プログラムをトークンに分割し、そのリストを返します。
ライブラリ内部で使用します。 Ripper.tokenize を使用してください。... -
Rake
:: Application # name -> String (3107.0) -
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
...アプリケーションの名前を返します。通常は 'rake' という名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}... -
Rake
:: Application # original _ dir -> String (3107.0) -
rake コマンドを実行したディレクトリを返します。
...rake コマンドを実行したディレクトリを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.original_dir # => "/path/to/dir"
end
//}... -
Rake
:: Application # rakefile -> String (3107.0) -
実際に使用されている Rakefile の名前を返します。
...実際に使用されている Rakefile の名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.rakefile # => "Rakefile"
end
//}... -
Ripper
:: Filter (3052.0) -
イベントドリブンスタイルで Ruby プログラムを加工するためのクラスです。
...スタイルで Ruby プログラムを加工するためのクラスです。
このクラスを継承して、必要なイベントに対応するメソッドを定義して使用し
ます。
=== 使用例
//emlist[][ruby]{
require 'ripper'
require 'cgi'
class Ruby2HTML < Ripper::Filter
def......k)}</span>]
end
def on_tstring_beg(tok, f)
f << %Q[<span class="string">#{CGI.escapeHTML(tok)}]
end
def on_tstring_end(tok, f)
f << %Q[#{CGI.escapeHTML(tok)}</span>]
end
end
Ruby2HTML.new(ARGF).parse('')
//}
Ruby プログラムを解析して、Ripper::SCANNER_EVENTS にある......イベントを実行します。イベントはプログラムに書いた順番で実行されます。
上記の例では、parse メソッドに渡した空文字列を初期値として、イベントハ
ンドラが ARGF で渡された Ruby プログラムを HTML にして返します。... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (3030.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返
します。
//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :......>true,
# :operands_unification=>true,
# :instructions_unification=>false,
# :stack_caching=>false,
# :trace_instruction=>true,
# :frozen_string_literal=>false,
# :debug_frozen_string_literal=>false,
# :coverage_enabled=>true,
# :debug_level=>0}
//}
@see RubyVM::InstructionSequence.compile_option=... -
Gem
:: Requirement # pretty _ print(pp) -> String (248.0) -
わかりやすい形で、条件を表す文字列を返します。 pp メソッドで出力する際に、内部で用いられます。
...、条件を表す文字列を返します。
pp メソッドで出力する際に、内部で用いられます。
@param PP :PP オブジェクトを指定します。
//emlist[][ruby]{
require 'pp'
req = Gem::Requirement.new(["< 5.0", ">= 1.9"])
pp req # => Gem::Requirement.new(["< 5.0", ">= 1...