るりまサーチ

最速Rubyリファレンスマニュアル検索!
256件ヒット [101-200件を表示] (0.068秒)

別のキーワード

  1. rbconfig ruby
  2. fiddle ruby_free
  3. fiddle build_ruby_platform
  4. rake ruby
  5. rubygems/defaults ruby_engine

検索結果

<< < 1 2 3 > >>

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

Ruby
2HTML.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...
<< < 1 2 3 > >>