109件ヒット
[101-109件を表示]
(0.109秒)
ライブラリ
- ビルトイン (8)
-
cgi
/ html (3) - e2mmap (6)
- ipaddr (2)
-
irb
/ context (1) -
irb
/ output-method (2) - json (3)
- matrix (1)
- mkmf (5)
-
net
/ ftp (1) -
net
/ http (1) -
net
/ imap (1) - openssl (3)
- pathname (1)
- pp (9)
- prime (4)
- psych (10)
- rake (16)
-
rexml
/ sax2listener (2) - ripper (11)
-
ripper
/ filter (6) -
ripper
/ lexer (3) -
rubygems
/ installer (1) -
rubygems
/ package / tar _ input (1) -
rubygems
/ requirement (1) - shell (1)
-
shell
/ builtin-command (2) -
shell
/ command-processor (1) -
shell
/ filter (1) - socket (1)
-
webrick
/ httputils (1)
クラス
- Addrinfo (1)
- Array (2)
-
Gem
:: Installer (1) -
Gem
:: Package :: TarInput (1) -
Gem
:: Requirement (1) - IPAddr (2)
-
IRB
:: Context (1) -
IRB
:: OutputMethod (2) - Integer (1)
-
JSON
:: State (2) - Matrix (1)
- Module (1)
-
Net
:: FTP :: MLSxEntry (1) -
Net
:: HTTP (1) -
Net
:: IMAP (1) - Object (5)
-
OpenSSL
:: BN (2) - PP (4)
- Pathname (1)
- Prime (2)
-
Prime
:: PseudoPrimeGenerator (2) -
Process
:: Status (1) -
Psych
:: Handler (2) -
Psych
:: Nodes :: Mapping (8) -
Rake
:: Application (11) -
Rake
:: InvocationChain (1) -
Rake
:: InvocationChain :: EmptyInvocationChain (1) -
Rake
:: Task (2) - Ripper (11)
-
Ripper
:: Filter (6) -
Ripper
:: Lexer (3) -
RubyVM
:: InstructionSequence (1) - Shell (1)
-
Shell
:: AppendFile (1) -
Shell
:: AppendIO (1) -
Shell
:: CommandProcessor (1) -
Shell
:: Filter (1) -
WEBrick
:: HTTPUtils :: FormData (1)
モジュール
-
CGI
:: HtmlExtension (2) -
CGI
:: TagMaker (1) - Enumerable (3)
- Exception2MessageMapper (6)
- Kernel (6)
-
REXML
:: SAX2Listener (2) -
Rake
:: TaskManager (1)
キーワード
- << (1)
- Fail (1)
- Raise (1)
-
add
_ loader (1) - anchor (1)
- anchor= (1)
-
app
_ script _ text (1) - append (7)
-
append
_ data (1) -
append
_ features (1) - appendable? (1)
- application (1)
- application= (1)
- bind (1)
- chunk (1)
- column (2)
-
comma
_ breakable (1) -
compile
_ error (1) -
cpp
_ command (1) -
def
_ exception (1) - each (2)
-
egrep
_ cpp (2) - encoding (1)
-
end
_ mapping (1) -
end
_ prefix _ mapping (1) -
end
_ seen? (1) - entries (1)
- fail (1)
- filename (2)
- form (2)
- implicit (1)
- implicit= (1)
- init (1)
- input= (2)
-
inspect
_ mode= (1) -
ipv4
_ mapped (1) -
ipv4
_ mapped? (1) -
ipv6
_ v4mapped? (1) - jj (1)
- lex (1)
- lineno (2)
-
load
_ rakefile (1) -
nOE
_ element _ def (1) - name (1)
-
object
_ group (1) -
on
_ XXX (1) -
on
_ default (1) -
original
_ dir (1) - parse (3)
- ppx (1)
-
pretty
_ inspect (1) -
pretty
_ print (3) -
pretty
_ print _ cycle (1) -
pretty
_ print _ inspect (1) -
pretty
_ print _ instance _ variables (1) - proppatch (1)
- push (1)
- rakefile (1)
- run (1)
- seplist (1)
-
slice
_ before (2) -
start
_ mapping (1) -
start
_ prefix _ mapping (1) - stopped? (1)
- style (1)
- style= (1)
- tag (1)
- tag= (1)
- tasks (1)
-
to
_ a (1) -
to
_ bn (1) -
to
_ h (1) -
to
_ hash (1) - tokenize (1)
-
top
_ level (1) -
top
_ level _ tasks (1) -
try
_ cpp (2) -
tty
_ output= (1) -
upper
_ bound (1) -
upper
_ bound= (1) -
upper
_ triangular? (1) - warn (1)
- warning (1)
- yydebug (1)
- yydebug= (1)
-
zipped
_ stream (1)
検索結果
先頭5件
-
Integer
# to _ bn -> OpenSSL :: BN (40.0) -
Integer を同じ数を表す OpenSSL::BN のオブジェクトに 変換します。
Integer を同じ数を表す OpenSSL::BN のオブジェクトに
変換します。
//emlist[][ruby]{
require 'openssl'
pp 5.to_bn #=> #<OpenSSL::BN 5>
pp (-5).to_bn #=> #<OpenSSL::BN -5>
//}
なお、実装は、以下のようになっています。
//emlist[][ruby]{
class Integer
def to_bn
OpenSSL::BN::new(self)
end
end
//}
@see OpenSSL::BN.new, OpenSSL::... -
JSON
:: State # to _ h -> Hash (40.0) -
自身をハッシュに変換します。
自身をハッシュに変換します。
//emlist[例][ruby]{
require "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,
# :max_nesting=>100,
# ... -
JSON
:: State # to _ hash -> Hash (40.0) -
自身をハッシュに変換します。
自身をハッシュに変換します。
//emlist[例][ruby]{
require "json"
require "pp"
json_state = JSON::State.new
pp json_state.to_h
# => {:indent=>"",
# :space=>"",
# :space_before=>"",
# :object_nl=>"",
# :array_nl=>"",
# :allow_nan=>false,
# :ascii_only=>false,
# :max_nesting=>100,
# ... -
OpenSSL
:: BN # <<(other) -> OpenSSL :: BN (40.0) -
自身を other ビット左シフトした値を返します。
自身を other ビット左シフトした値を返します。
//emlist[][ruby]{
bn = 1.to_bn
pp bn << 1 # => #<OpenSSL::BN 2>
pp bn # => #<OpenSSL::BN 1>
//}
@param other シフトするビット数
@raise OpenSSL::BNError 計算時エラー
@see OpenSSL::BN#lshift! -
Pathname
# entries -> [Pathname] (40.0) -
self に含まれるファイルエントリ名を元にした Pathname オブジェクトの配列を返します。
self に含まれるファイルエントリ名を元にした Pathname オブジェクトの配列を返します。
@raise Errno::EXXX self が存在しないパスであったりディレクトリでなければ例外が発生します。
//emlist[例][ruby]{
require 'pathname'
require 'pp'
pp Pathname('/usr/local').entries
# => [#<Pathname:.>,
# #<Pathname:..>,
# #<Pathname:bin>,
# #<Pathname:etc>,
# #<Pathnam... -
Rake
:: TaskManager # tasks -> Array (40.0) -
全てのタスクリストを返します。
全てのタスクリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'pp'
task default: :test_rake_app2
task :test_rake_app1 do |task|
end
task :test_rake_app2 do |task|
pp task.application.tasks
# => [<Rake::Task default => [test_rake_app2]>,
# <Rake::Task test_rake_app1 => []>,
# <Rake... -
RubyVM
:: InstructionSequence # to _ a -> Array (40.0) -
self の情報を 14 要素の配列にして返します。
...ンドの配列の配列。
//emlist[例][ruby]{
require 'pp'
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
pp iseq.to_a
# ※ Ruby 2.5.0 での実行結果
# => ["YARVInstructionSequence/SimpleDataFormat",
# 2,
# 0,
# 1,
# {:arg_size=>0, :local_size=>2, :stack_max=>2},
# "<compiled>"... -
IRB
:: Context # inspect _ mode=(opt) (22.0) -
実行結果の出力方式を opt に設定します。
実行結果の出力方式を opt に設定します。
@param opt 以下のいずれかを指定します。
: false, :to_s, :raw
出力結果を to_s したものを表示します。
: true, :p, :inspect
出力結果を inspect したものを表示します。
: :pp, :pretty_inspect
出力結果を pretty_inspect したものを表示します。
: :yaml, :YAML
出力結果を YAML 形式にしたものを表示します。
: :marshal, :Marshal, :MARSHAL, Marshal
出力結果を Marsh... -
Kernel
# jj(*objects) -> nil (22.0) -
与えられたオブジェクトを JSON 形式の文字列で標準出力に人間に読みやすく整形して出力します。
与えられたオブジェクトを JSON 形式の文字列で標準出力に人間に読みやすく整形して出力します。
@param objects JSON 形式で出力したいオブジェクトを指定します。
//emlist[例][ruby]{
require "json"
jj([1,2,{"name" => "tanaka","age" => 19}])
# => [
# 1,
# 2,
# {
# "name": "tanaka",
# "age": 19
# }
# ]
//}
@see Kernel.#pp