種類
ライブラリ
- ビルトイン (473)
- csv (22)
- etc (11)
-
fiddle
/ import (132) - json (11)
-
json
/ add / ostruct (11) -
json
/ add / struct (11) - mkmf (22)
- objspace (11)
- openssl (55)
- ostruct (108)
- rake (11)
-
rexml
/ document (110) -
rexml
/ parsers / pullparser (11) -
rexml
/ sax2listener (11) -
rexml
/ streamlistener (11) - socket (77)
- zlib (11)
クラス
- Addrinfo (33)
- Array (28)
- CSV (22)
- Data (2)
-
Fiddle
:: CStruct (55) - Hash (9)
-
OpenSSL
:: ASN1 :: Constructive (33) - OpenStruct (119)
-
REXML
:: Element (11) -
REXML
:: Instruction (88) -
REXML
:: Parsers :: PullEvent (11) -
Rake
:: Application (11) - Range (11)
- RubyVM (11)
-
RubyVM
:: InstructionSequence (225) -
Socket
:: Option (33) - String (11)
- Struct (148)
- TracePoint (6)
モジュール
- Etc (11)
-
Fiddle
:: Importer (66) - Kernel (22)
- ObjectSpace (33)
-
OpenSSL
:: ASN1 (11) -
REXML
:: SAX2Listener (11) -
REXML
:: StreamListener (11)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - == (11)
- Addrinfo (11)
- CStruct (11)
- CircularDatastructure (11)
- Constructive (11)
-
DATA
_ PTR (11) -
Data
_ Get _ Struct (11) -
Data
_ Make _ Struct (11) -
Data
_ Wrap _ Struct (11) -
INSTRUCTION
_ NAMES (11) - InspectKey (11)
- Instruction (11)
- InstructionSequence (11)
- Marshal フォーマット (11)
-
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) - RBASIC (11)
- RBIGNUM (11)
- RFILE (11)
- RSTRING (11)
- Ruby用語集 (11)
-
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (11) - ZStream (11)
-
absolute
_ path (11) -
base
_ label (11) - bigdecimal (11)
-
blk
_ copy _ prev (11) -
blk
_ free (11) -
blk
_ mark (11) -
blk
_ orphan (11) -
bm
_ mark (11) - clone (11)
- compile (11)
-
compile
_ file (11) -
compile
_ option (11) -
compile
_ option= (11) - content (11)
- content= (11)
- convert (22)
-
count
_ tdata _ objects (11) -
create
_ value (11) - data (11)
-
deconstruct
_ keys (2) -
delete
_ field (11) - dig (36)
- disasm (22)
- disassemble (22)
-
dyna
_ pop (11) -
dyna
_ push (11) - each (11)
-
each
_ object (22) -
each
_ pair (44) - eval (11)
-
fc
_ i (11) -
fc
_ path (11) - fiddle (11)
-
fiddle
/ import (11) -
fiddle
/ types (11) - filter (12)
-
first
_ lineno (11) -
frame
_ dup (11) -
gvar
_ i (11) - hash (22)
-
have
_ struct _ member (22) - inspect (33)
- instruction (11)
- instruction? (11)
-
instruction
_ sequence (6) - instructions (11)
-
ivar
_ i (11) -
keyword
_ init? (3) - label (11)
- length (11)
- linger (11)
-
load
_ from _ binary (9) -
load
_ from _ binary _ extra _ data (9) - malloc (11)
-
mark
_ global _ entry (11) - modifiable (11)
- new (80)
-
new
_ blktag (11) -
new
_ dvar (11) -
node
_ type (11) - of (11)
- pack (19)
- pack テンプレート文字列 (11)
- path (11)
-
processing
_ instruction (11) -
rb
_ exec (1) -
rb
_ exec _ arg _ addopt (1) -
rb
_ exec _ arg _ fixup (1) -
rb
_ exec _ arg _ init (1) -
rb
_ exec _ err (1) -
rb
_ gc _ mark _ frame (11) -
rb
_ global _ entry (11) -
rb
_ gvar _ defined (11) -
rb
_ reserved _ word (11) -
rb
_ struct _ iv _ get (1) -
rb
_ thread _ select (1) -
rb
_ thread _ wait _ for (11) -
rb
_ time _ timespec _ new (9) -
rb
_ timespec _ now (9) -
remove
_ trace (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 9 feature (11) -
scope
_ dup (11) - select (22)
- size (22)
- sizeof (11)
-
st
_ init _ table (11) -
st
_ init _ table _ with _ size (11) - tagging (11)
- tagging= (11)
- target (11)
- target= (11)
-
to
_ a (11) -
to
_ binary (9) -
to
_ i (11) -
to
_ json (22) -
to
_ ptr (11) -
to
_ s (44) -
to
_ sockaddr (11) -
trace
_ en (11) -
trace
_ ev (11) - traverse (11)
- typealias (11)
-
undef
_ setter (11) - union (11)
- unpack (11)
-
val
_ setter (11) - value (11)
検索結果
先頭5件
-
REXML
:: StreamListener # instruction(name , instruction) -> () (12400.0) -
XML処理命令(PI)をパースしたときに呼び出されるコールバックメソッドです。
...(PI)をパースしたときに呼び出されるコールバックメソッドです。
@param name ターゲット名が文字列で渡されます
@param instruction 処理命令の内容が文字列で渡されます
=== 例
<?xml-stylesheet type="text/css" href="style.css"?>
というPIに......対し
name: "xml-stylesheet"
instruction: " type=\"text/css\" href=\"style.css\""
という引数が渡されます。... -
RubyVM
:: InstructionSequence . load _ from _ binary(binary) -> RubyVM :: InstructionSequence (12400.0) -
RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
...RubyVM::InstructionSequence#to_binaryにより作られたバイナリフォーマットの文字列からiseqのオブジェクトをロードします。
このローダーは検証機構をもっておらず、壊れたり改変されたバイナリを読み込むと深刻な問題を引き起......りません。自分が変換したバイナリデータを使うべきです。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary
RubyVM::InstructionSequence.load_from_binary(binary).eval # => 3
//}
@see RubyVM::InstructionSequence#to_binary... -
VALUE rb
_ time _ timespec _ new(const struct timespec *ts , int offset) (12400.0) -
引数 ts、offset を元に Time オブジェクトを作成して返します。
...元に Time オブジェクトを作成して返します。
@param ts timespec 構造体のポインタ
@param offset 協定世界時との時差(秒)。
-86400 < offset < 86400 の場合は指定した時差に、INT_MAX
を指定した場合は地方時、INT_MAX-1......を指定した場合は UTC に
なります。
@raise ArgumentError offset に上述の範囲以外の値を指定した場合に発生し
ます。... -
REXML
:: Element # instructions -> [REXML :: Instraction] (12300.0) -
すべての instruction 子ノードの配列を返します。
...すべての instruction 子ノードの配列を返します。
返される配列は freeze されます。... -
RubyVM
:: INSTRUCTION _ NAMES -> [String] (12300.0) -
RubyVM の命令シーケンスの名前の一覧を返します。
...RubyVM の命令シーケンスの名前の一覧を返します。
@see RubyVM::InstructionSequence... -
RubyVM
:: InstructionSequence . load _ from _ binary _ extra _ data(binary) -> String (12300.0) -
バイナリフォーマットの文字列から埋め込まれたextra_dataを取り出します。
...埋め込まれたextra_dataを取り出します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
binary = iseq.to_binary("extra_data")
RubyVM::InstructionSequence.load_from_binary_extra_data(binary) # => extra_data
//}
@see RubyVM::InstructionSequence#to_binary... -
REXML
:: Parsers :: PullEvent # instruction? -> bool (12200.0) -
XML処理命令なら真を返します。
XML処理命令なら真を返します。 -
RubyVM
:: InstructionSequence # inspect -> String (12200.0) -
self の情報をラベルとパスを含んだ人間に読みやすい文字列にして返します。
...んだ人間に読みやすい文字列にして返します。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.inspect # => "<RubyVM::InstructionSequence:<compiled>@<compiled>>"
//}
@see RubyVM::InstructionSequence#label,
RubyVM::InstructionSequence#path... -
RubyVM
:: InstructionSequence # to _ binary(extra _ data = nil) -> String (12200.0) -
バイナリフォーマットでシリアライズされたiseqのデータを文字列として返します。 RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
...れたiseqのデータを文字列として返します。
RubyVM::InstructionSequence.load_from_binary メソッドでバイナリデータに対応するiseqオブジェクトを作れます。
引数の extra_data はバイナリデータと共に保存されます。
RubyVM::InstructionSequence.......load_from_binary_extra_data メソッドでこの文字列にアクセス出来ます。
注意: 変換後のバイナリデータはポータブルではありません。 to_binary で得たバイナリデータは他のマシンに移動できません。他のバージョンや他のアーキ......テクチャのRubyで作られたバイナリデータは使用できません。
//emlist[例][ruby]{
iseq = RubyVM::InstructionSequence.compile('num = 1 + 2')
iseq.to_binary("extra_data")
# ※表示の都合上改行しているが実際は改行はない
# => "YARB\x02\x00\x00\x00\x03\x00\x00... -
VALUE rb
_ struct _ iv _ get(VALUE c , const char *name) (12200.0) -
この関数は deprecated です。内部関数になりました。
この関数は deprecated です。内部関数になりました。 -
Struct
# to _ s -> String (12130.0) -
self の内容を人間に読みやすい文字列にして返します。
...述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "12......3 Maple, Anytown NC", 12345)
joe.inspect # => "#<struct Customer name=\"Joe Smith\", address=\"123 Maple, Anytown NC\", zip=12345>"
//}... -
Struct
# select {|i| . . . } -> [object] (12126.0) -
構造体のメンバの値に対してブロックを評価した値が真であった要素を全て含 む配列を返します。真になる要素がひとつもなかった場合は空の配列を返しま す。
.../emlist[例][ruby]{
Lots = Struct.new(:a, :b, :c, :d, :e, :f)
l = Lots.new(11, 22, 33, 44, 55, 66)
l.select {|v| (v % 2).zero? } #=> [22, 44, 66]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.ne......w は Struct の下位クラスを作成する点に
注意してください。
@see Enumerable#select...