別のキーワード
ライブラリ
- ビルトイン (136)
- bigdecimal (48)
- coverage (39)
- csv (240)
- date (36)
- erb (12)
- fiddle (24)
- fileutils (48)
- json (108)
- logger (12)
- matrix (204)
-
net
/ http (72) - openssl (24)
- optparse (48)
- pathname (60)
- pp (20)
- prettyprint (12)
- prime (12)
- psych (20)
- rake (36)
-
rake
/ packagetask (12) - resolv (24)
-
rexml
/ document (84) -
ripper
/ lexer (36) -
ripper
/ sexp (24) -
rubygems
/ requirement (48) - securerandom (8)
- set (27)
- socket (84)
- stringio (36)
- strscan (12)
-
test
/ unit (1) - tsort (93)
- uri (134)
クラス
- BigDecimal (48)
- CSV (228)
-
CSV
:: Table (12) - Coverage (39)
- Date (36)
- Dir (81)
- ERB (12)
- Enumerator (6)
-
Fiddle
:: Pointer (24) - File (12)
-
Gem
:: Requirement (48) - IPSocket (12)
- Integer (12)
-
JSON
:: Parser (12) -
JSON
:: State (24) - Logger (12)
- Matrix (160)
-
Net
:: HTTP (60) -
Net
:: HTTPResponse (12) - Object (12)
-
OpenSSL
:: BN (24) - OptionParser (48)
- PP (20)
- Pathname (60)
- PrettyPrint (12)
-
REXML
:: CData (12) -
REXML
:: Entity (12) -
REXML
:: Text (24) -
REXML
:: XPath (36) -
Rake
:: FileList (12) -
Rake
:: PackageTask (12) - Range (12)
- Resolv (24)
- Ripper (60)
- RubyVM (1)
-
RubyVM
:: InstructionSequence (24) - Set (27)
- Socket (60)
- StringIO (36)
- StringScanner (12)
- TCPSocket (12)
-
URI
:: FTP (12) - Vector (44)
モジュール
- FileUtils (48)
- JSON (60)
-
JSON
:: Generator :: GeneratorMethods :: String :: Extend (12) - Psych (8)
- Rake (24)
- SecureRandom (8)
- TSort (93)
-
Test
:: Unit (1) - URI (122)
キーワード
- Proxy (12)
- [] (69)
- accept (12)
- alphanumeric (8)
- application (12)
- application= (12)
- basis (12)
-
body
_ permitted? (12) - build (24)
- civil (12)
-
collect
_ method (12) - columns (12)
- combine (16)
- commands (12)
-
compile
_ option (12) - create (12)
-
create
_ id (12) -
create
_ id= (12) -
decode
_ www _ form _ component (12) - default (12)
- diagonal (12)
-
double
_ fig (12) - each (12)
-
each
_ strongly _ connected _ component (23) -
each
_ strongly _ connected _ component _ from (23) - elements (12)
- empty (12)
- empty? (9)
- encode (7)
-
encode
_ www _ form _ component (12) - escape (7)
- extract (48)
- filter (36)
- first (12)
- foreach (24)
- format (12)
-
from
_ prime _ division (12) -
from
_ state (12) - generate (12)
-
generate
_ line (12) -
get
_ print (24) - getaddress (24)
- getaddrinfo (12)
- gethostbyname (24)
- gethostname (12)
- getname (12)
- getwd (12)
- glob (24)
- hstack (12)
- instance (24)
- join (12)
-
json
_ create (12) - lex (12)
- limit (12)
-
line
_ stub (7) - match (12)
- matches? (12)
- mode (24)
- new (282)
- of (12)
- open (120)
- parse (48)
-
parse
_ line (12) - parser (12)
- path (12)
-
peek
_ result (12) - pp (12)
- produce (6)
- pwd (12)
- read (12)
- readlines (12)
- reject (12)
-
resolve
_ feature _ path (1) - result (12)
- rows (12)
-
safe
_ load (8) - scalar (12)
-
setup
_ argv (1) - sexp (12)
-
sexp
_ raw (12) -
sharing
_ detection (4) -
sharing
_ detection= (4) - slice (12)
- split (12)
- start (32)
- state (12)
-
strongly
_ connected _ components (12) - tcp (24)
-
to
_ ptr (12) - today (12)
- tokenize (12)
- tsort (12)
-
tsort
_ each (23) - unnormalize (12)
- vstack (12)
-
yaml
_ tag (12) - zero (32)
検索結果
先頭5件
-
RubyVM
. resolve _ feature _ path (12185.0) -
require を呼んだときに読み込まれるファイルを特定します。 このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
...require を呼んだときに読み込まれるファイルを特定します。
このメソッドはRuby 2.7 で $LOAD_PATH の特異メソッドに移動しました。
//emlist[][ruby]{
p RubyVM.resolve_feature_path('set')
# => [:rb, "/build-all-ruby/2.6.0/lib/ruby/2.6.0/set.rb"]
//}... -
RubyVM
:: InstructionSequence . compile _ option -> Hash (12119.0) -
命令シーケンスのコンパイル時のデフォルトの最適化オプションを Hash で返 します。
...//emlist[例][ruby]{
require "pp"
pp RubyVM::InstructionSequence.compile_option
# => {:inline_const_cache=>true,
# :peephole_optimization=>true,
# :tailcall_optimization=>false,
# :specialized_instruction=>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 . default -> Gem :: Requirement (9313.0) -
ゼロ以上 ( '>= 0' ) を指定して作成された Gem::Requirement のインスタンスを返します。
...ゼロ以上 ( '>= 0' ) を指定して作成された Gem::Requirement のインスタンスを返します。
//emlist[][ruby]{
pp Gem::Requirement.default
# => Gem::Requirement.new([">= 0"])
//}... -
RubyVM
:: InstructionSequence . of(body) -> RubyVM :: InstructionSequence (9307.0) -
引数 body で指定した Proc、Method オブジェクトを元に RubyVM::InstructionSequence オブジェクトを作成して返します。
...thod オブジェクトを元に
RubyVM::InstructionSequence オブジェクトを作成して返します。
@param body Proc、Method オブジェクトを指定します。
例1:irb で実行した場合
# proc
> p = proc { num = 1 + 2 }
> RubyVM::InstructionSequence.of(p)
> # => <Ruby......nstructionSequence:block in irb_binding@(irb)>
# method
> def foo(bar); puts bar; end
> RubyVM::InstructionSequence.of(method(:foo))
> # => <RubyVM::InstructionSequence:foo@(irb)>
例2: RubyVM::InstructionSequence.compile_file を使用した場合
# /tmp/iseq_of.rb
def hello
puts......{ str = 'a' + 'b' }
# irb
> require '/tmp/iseq_of.rb'
# hello メソッド
> RubyVM::InstructionSequence.of(method(:hello))
> # => #<RubyVM::InstructionSequence:0x007fb73d7cb1d0>
# グローバル proc
> RubyVM::InstructionSequence.of($a_global_proc)
> # => #<RubyVM::InstructionS... -
JSON
:: State . from _ state(options) -> JSON :: State (9261.0) -
与えられた options によって生成した JSON::State のインスタンスを返します。
...えられた options によって生成した JSON::State のインスタンスを返します。
@param options JSON::State のインスタンスか、ハッシュを指定します。
@return options がハッシュである場合は、それによって初期化した JSON::State を......。options が JSON::State のインスタンスである場合は単に
options を返します。いずれでも無い場合は、何も設定されていない JSON::State の
インスタンスを返します。
//emlist[例 Hash を指定][ruby]{
require "json"
json_state = JS......:State.from_state(indent: "\t")
json_state.class # => JSON::Ext::Generator::State
json_state.indent # => "\t"
//}
//emlist[例 JSON::State を指定][ruby]{
require "json"
json_state = JSON::State.from_state(indent: "\t")
# JSON を出力する何らかの処理を実行する
copy = JSON::State.... -
Gem
:: Requirement . create(input) -> Gem :: Requirement (9213.0) -
Gem::Requirement のインスタンスを作成するためのファクトリメソッドです。
...Gem::Requirement のインスタンスを作成するためのファクトリメソッドです。
@param input 文字列か配列か Gem::Requirement, Gem::Version のインスタンス
のいずれかを指定します。
@return 上記以外の値を input に指定するとデフ......ォルト値を返します。
//emlist[][ruby]{
pp Gem::Requirement.create("~> 3.2.1")
# => Gem::Requirement.new(["~> 3.2.1"])
//}
@see Gem::Requirement.new, Gem::Requirement.default... -
JSON
:: Generator :: GeneratorMethods :: String :: Extend . json _ create(hash) -> String (9139.0) -
JSON のオブジェクトから Ruby の文字列を生成して返します。
...JSON のオブジェクトから Ruby の文字列を生成して返します。
@param hash キーとして "raw" という文字列を持ち、その値として数値の配列を持つハッシュを指定します。
require 'json'
String.json_create({"raw" => [0x41, 0x42, 0x43]}) # => "A... -
FileUtils
. options -> Array (9119.0) -
オプション名の配列を返します。
...オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["verbose", "mode", "noop", "parents", "force", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}......オプション名の配列を返します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options
# => ["noop", "verbose", "force", "mode", "parents", "owner", "group", "preserve", "dereference_root", "remove_destination", "secure", "mtime", "nocreate"]
//}... -
FileUtils
. options _ of(mid) -> Array (9119.0) -
与えられたメソッド名で使用可能なオプション名の配列を返します。
...与えられたメソッド名で使用可能なオプション名の配列を返します。
@param mid メソッド名を指定します。
//emlist[][ruby]{
require 'fileutils'
FileUtils.options_of(:rm) # => ["noop", "verbose", "force"]
//}... -
TSort
. strongly _ connected _ components(each _ node , each _ child) -> Array (9119.0) -
強連結成分の集まりを配列の配列として返します。 この配列は子から親に向かってソートされています。 各要素は強連結成分を表す配列です。
...オブジェクトを指定します。
//emlist[使用例][ruby]{
require 'tsort'
g = {1=>[2, 3], 2=>[4], 3=>[2, 4], 4=>[]}
each_node = lambda {|&b| g.each_key(&b) }
each_child = lambda {|n, &b| g[n].each(&b) }
p TSort.strongly_connected_components(each_node, each_child)
# => [[4], [2], [3], [1]]......g = {1=>[2], 2=>[3, 4], 3=>[2], 4=>[]}
each_node = lambda {|&b| g.each_key(&b) }
each_child = lambda {|n, &b| g[n].each(&b) }
p TSort.strongly_connected_components(each_node, each_child)
# => [[4], [2, 3], [1]]
//}
@see TSort#strongly_connected_components...