別のキーワード
種類
ライブラリ
- ビルトイン (453)
-
bigdecimal
/ math (12) - cmath (24)
- matrix (12)
-
net
/ http (12) - open3 (12)
- pty (12)
-
rexml
/ document (12) - ripper (12)
- timeout (21)
クラス
- Complex (48)
-
File
:: Stat (12) - Float (69)
- IO (12)
- Numeric (48)
- Regexp (24)
- Ripper (12)
-
RubyVM
:: InstructionSequence (60) - String (24)
- Vector (12)
モジュール
キーワード
- Float (12)
- Instruction (12)
- Marshal フォーマット (12)
- Math (12)
-
NEWS for Ruby 2
. 6 . 0 (7) - Ruby用語集 (12)
- acos (12)
- angle (36)
-
angle
_ with (12) - arg (36)
- asin (12)
- bigdecimal (12)
-
bigdecimal
/ math (12) - capitalize (12)
- capitalize! (12)
- check (12)
- compile (36)
-
compile
_ error (12) -
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - cos (12)
- cos! (6)
-
each
_ capitalized _ name (12) - exp (6)
- hash (12)
- new (24)
- phase (36)
- pid (12)
- pipe? (12)
- pipeline (12)
- polar (24)
- printf (24)
-
rb
_ compile _ cstr (12) -
rb
_ compile _ error (12) -
rb
_ compile _ error _ with _ enc (12) -
rb
_ compile _ file (12) -
rb
_ compile _ string (12) -
rexml
/ parsers / pullparser (12) -
rexml
/ parsers / ultralightparser (12) - round (21)
- sin (12)
- sin! (6)
- tan! (6)
- timeout (21)
- wait (12)
- wait2 (12)
- waitpid (12)
- waitpid2 (12)
- メソッド呼び出し(super・ブロック付き・yield) (12)
検索結果
先頭5件
- BigMath
. # PI(prec) -> BigDecimal - Math
:: PI -> Float - RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence - RubyVM
:: InstructionSequence . compile _ option -> Hash
-
BigMath
. # PI(prec) -> BigDecimal (18125.0) -
円周率を prec で指定した精度で計算します。
...指定された場合に発生します。
//emlist[][ruby]{
require "bigdecimal/math"
puts BigMath::PI(2) #=> 0.31415926535897932384671233672993238432e1
puts BigMath::PI(5) #=> 0.31415926535897932384627534923029509162e1
puts BigMath::PI(10) #=> 0.3141592653589793238462643388813853786957412e1
//... -
Math
:: PI -> Float (18113.0) -
円周率
...円周率
//emlist[例][ruby]{
p Math::PI
# => 3.141592654
//}... -
RubyVM
:: InstructionSequence . compile(source , file = nil , path = nil , line = 1 , options = nil) -> RubyVM :: InstructionSequence (9222.0) -
引数 source で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 source で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param source Ruby のソースコードを文字列で指定します。
@param file ファイル名を文字列で指定しま......かで指定します。詳細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
RubyVM::InstructionSequence.compile("a = 1 + 2")
# => <RubyVM::InstructionSequence:<compiled>@<compiled>>
@see RubyVM::InstructionSequence.compile_file... -
RubyVM
:: InstructionSequence . compile _ file(file , options = nil) -> RubyVM :: InstructionSequence (9216.0) -
引数 file で指定した Ruby のソースコードを元にコンパイル済みの RubyVM::InstructionSequence オブジェクトを作成して返します。
...引数 file で指定した Ruby のソースコードを元にコンパイル済みの
RubyVM::InstructionSequence オブジェクトを作成して返します。
RubyVM::InstructionSequence.compile とは異なり、file、path などの
メタデータは自動的に取得します。
@param......細は
RubyVM::InstructionSequence.compile_option= を参照
してください。
# /tmp/hello.rb
puts "Hello, world!"
# irb
RubyVM::InstructionSequence.compile_file("/tmp/hello.rb")
# => <RubyVM::InstructionSequence:<main>@/tmp/hello.rb>
@see RubyVM::Inst......ructionSequence.compile... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (9106.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...ーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返
します。
//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialize......>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=... -
RubyVM
:: InstructionSequence . compile _ option=(options) (9100.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを引数 options で指定します。
....compile、.compile_file メソッドの実行の際に option 引数を指定し
た場合はその実行のみ最適化オプションを変更する事もできます。
@see RubyVM::InstructionSequence.new,
RubyVM::InstructionSequence.compile,
RubyVM::InstructionSequence.compile_file... -
NODE * rb
_ compile _ file(const char *f , VALUE file , int start) (6180.0) -
Ruby の IO オブジェクト file から文字列を読み込み、 それを Ruby プログラムとして構文木にコンパイルします。 作成した構文木は ruby_eval_tree と ruby_eval_tree_begin に 格納し、同時に ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。
...
Ruby の IO オブジェクト file から文字列を読み込み、
それを Ruby プログラムとして構文木にコンパイルします。
作成した構文木は ruby_eval_tree と ruby_eval_tree_begin に
格納し、同時に ruby_eval_tree を返します。
またコンパイルす... -
NODE * rb
_ compile _ string(const char *f , VALUE s , int line) (6164.0) -
Ruby の文字列 s を構文木にコンパイルし、ruby_eval_tree と ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。
...
Ruby の文字列 s を構文木にコンパイルし、ruby_eval_tree と
ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。... -
NODE * rb
_ compile _ cstr(const char *f , const char *s , int len , int line) (6148.0) -
C の文字列 s を構文木にコンパイルし、ruby_eval_tree と ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。 またコンパイルするときにファイル f の line 行目からをコンパイル していると仮定します。
...C の文字列 s を構文木にコンパイルし、ruby_eval_tree と
ruby_eval_tree_begin に格納します。ruby_eval_tree を返します。
またコンパイルするときにファイル f の line 行目からをコンパイル
していると仮定します。...