2447件ヒット
[1-100件を表示]
(0.107秒)
種類
ライブラリ
- ビルトイン (776)
- csv (42)
- date (4)
- etc (30)
-
fiddle
/ import (144) - json (12)
-
json
/ add / ostruct (24) -
json
/ add / struct (24) - mkmf (24)
- objspace (12)
- openssl (60)
- ostruct (209)
- rake (12)
-
rexml
/ document (120) -
rexml
/ parsers / pullparser (12) -
rexml
/ sax2listener (12) -
rexml
/ streamlistener (12) - socket (72)
- zlib (12)
クラス
- Addrinfo (36)
- Array (31)
- CSV (36)
-
CSV
:: Row (6) - Data (6)
- Date (2)
- DateTime (2)
-
Fiddle
:: CStruct (60) - Hash (10)
- MatchData (4)
-
OpenSSL
:: ASN1 :: Constructive (36) - OpenStruct (221)
-
REXML
:: Element (12) -
REXML
:: Instruction (96) -
REXML
:: Parsers :: PullEvent (12) -
Rake
:: Application (12) - Range (12)
- RubyVM (12)
-
RubyVM
:: InstructionSequence (246) -
Socket
:: Option (36) - String (12)
- Struct (383)
- Time (2)
- TracePoint (7)
モジュール
- Etc (12)
-
Fiddle
:: Importer (72) - Kernel (24)
- ObjectSpace (60)
-
OpenSSL
:: ASN1 (12) -
REXML
:: SAX2Listener (12) -
REXML
:: StreamListener (12)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (12) - == (36)
- CStruct (12)
- CircularDatastructure (12)
- Constructive (12)
-
DATA
_ PTR (12) - Data (3)
-
Data
_ Get _ Struct (12) -
Data
_ Make _ Struct (12) -
Data
_ Wrap _ Struct (12) - Group (9)
-
INSTRUCTION
_ NAMES (12) - InspectKey (12)
- Instruction (12)
- InstructionSequence (12)
- Marshal フォーマット (12)
-
NEWS for Ruby 2
. 0 . 0 (12) -
NEWS for Ruby 2
. 2 . 0 (11) -
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 3
. 1 . 0 (4) - OpenStruct (12)
- Passwd (9)
- RARRAY (12)
- RBASIC (12)
- RBIGNUM (12)
- RCLASS (12)
- RDATA (12)
- RFILE (12)
- RFLOAT (12)
- RHASH (12)
- RMODULE (12)
- ROBJECT (12)
- RREGEXP (12)
- RSTRING (12)
- RSTRUCT (12)
-
RUBY
_ DATA _ FUNC (12) -
SC
_ THREAD _ DESTRUCTOR _ ITERATIONS (12) - Struct (12)
- ZStream (12)
- [] (36)
- []= (24)
-
absolute
_ path (12) -
base
_ label (12) - bigdecimal (12)
-
blk
_ copy _ prev (12) -
blk
_ free (12) -
blk
_ mark (12) -
blk
_ orphan (12) -
bm
_ mark (12) - clone (12)
- compile (12)
-
compile
_ file (12) -
compile
_ option (12) -
compile
_ option= (12) - content (12)
- content= (12)
- convert (36)
-
count
_ tdata _ objects (12) -
create
_ value (12) - data (12)
- deconstruct (14)
-
deconstruct
_ keys (20) -
delete
_ field (12) - dig (40)
- disasm (24)
- disassemble (24)
-
dyna
_ pop (12) -
dyna
_ push (12) - each (36)
-
each
_ object (48) -
each
_ pair (48) - eql? (24)
- equal? (12)
- eval (12)
-
fc
_ i (12) -
fc
_ path (12) -
fiddle
/ import (12) -
fiddle
/ types (12) - filter (14)
-
first
_ lineno (12) -
frame
_ dup (12) -
gvar
_ i (12) - hash (24)
-
have
_ struct _ member (24) - inspect (36)
- instruction (12)
- instruction? (12)
-
instruction
_ sequence (7) - instructions (12)
-
ivar
_ i (12) -
json
/ add / ostruct (12) -
json
/ add / struct (12) -
json
_ create (24) -
keyword
_ init? (4) - label (12)
- length (12)
- linger (12)
-
load
_ from _ binary (10) -
load
_ from _ binary _ extra _ data (10) - malloc (12)
-
mark
_ global _ entry (12) - members (24)
- modifiable (12)
- new (108)
-
new
_ blktag (12) -
new
_ dvar (12) -
new
_ ostruct _ member (12) -
node
_ type (12) - of (12)
- ostruct (12)
- pack (21)
- pack テンプレート文字列 (12)
- path (12)
-
processing
_ instruction (12) -
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 (12) -
rb
_ global _ entry (12) -
rb
_ gvar _ defined (12) -
rb
_ gvar _ get (12) -
rb
_ gvar _ set (12) -
rb
_ reserved _ word (12) -
rb
_ struct _ iv _ get (1) -
rb
_ thread _ select (1) -
rb
_ thread _ wait _ for (12) -
rb
_ time _ timespec _ new (10) -
rb
_ timespec _ now (10) -
remove
_ trace (12) -
rexml
/ document (12) -
ruby 1
. 6 feature (12) -
ruby 1
. 8 . 2 feature (12) -
ruby 1
. 9 feature (12) -
scope
_ dup (12) - select (24)
- size (24)
- sizeof (12)
- socket (12)
-
st
_ init _ table (12) -
st
_ init _ table _ with _ size (12) - tagging (12)
- tagging= (12)
- target (12)
- target= (12)
-
to
_ a (24) -
to
_ binary (10) -
to
_ h (38) -
to
_ i (12) -
to
_ json (24) -
to
_ ptr (12) -
to
_ s (48) -
to
_ sockaddr (12) -
trace
_ en (12) -
trace
_ ev (12) - traverse (12)
- typealias (12)
-
undef
_ setter (12) - union (12)
- unpack (12)
-
val
_ setter (12) - value (12)
- values (12)
-
values
_ at (12) - yaml (12)
-
yaml
/ store (12)
検索結果
先頭5件
-
static VALUE trace
_ ev(struct trace _ data *data) (26400.0) -
-
static VALUE trace
_ en(struct global _ variable *var) (26200.0) -
-
Struct
# deconstruct -> [object] (24224.0) -
構造体のメンバの値を配列にいれて返します。
...列にいれて返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_a
# => ["Joe Smith", "123 Maple, Anytown NC", 12345]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンス......に対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
@see d:spec/pattern_matching#matching_non_primitive_objects... -
Struct
# deconstruct _ keys(array _ of _ names) -> Hash (24224.0) -
self のメンバの名前と値の組を Hash で返します。
...のメンバを意味します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
h = joe.deconstruct_keys([:zip, :address])
h # => {:zip=>12345, :address=>"123 Maple, Anytown NC"}
# 引数が nil の場合は全て......。
h = joe.deconstruct_keys(nil)
h # => {:name=>"Joseph Smith, Jr.", :address=>"123 Maple, Anytown NC", :zip=>12345}
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンスに対して呼び
出す事を想定しています。Struct.new は Struct の下位クラ......スを作成する点に
注意してください。
@see d:spec/pattern_matching#matching_non_primitive_objects... -
Fiddle
:: Importer # struct(signature) -> Class (24219.0) -
C の構造体型に対応する Ruby のクラスを構築して返します。
...ます。そしてそれを
配列で signature に渡してデータを定義します。例えば C における
struct timeval {
long tv_sec;
long tv_usec;
};
という構造体型に対応して
Timeval = struct(["long tv_sec", "long tv_usec"])
として構造体に対応するク......す
* クラスメソッド malloc
* initialize
* to_ptr
* to_i
* 構造体の各メンバへのアクセサ
返されるクラスは Fiddle::CStruct を継承しています。詳しくは
そちらを参照してください。
@param signature 構造体の各要素を文字列で表......require 'fiddle/import'
module M
extend Fiddle::Importer
dlload "libc.so.6"
extern "int gettimeofday(void*, void*)"
Timeval = struct(["long tv_sec", "long tv_usec"])
end
time = M::Timeval.malloc
M.gettimeofday(time, Fiddle::NULL)
p time.tv_sec
p time.tv_usec... -
Struct
# to _ a -> [object] (21124.0) -
構造体のメンバの値を配列にいれて返します。
...列にいれて返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_a
# => ["Joe Smith", "123 Maple, Anytown NC", 12345]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンス......に対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
@see d:spec/pattern_matching#matching_non_primitive_objects... -
OpenStruct
# new _ ostruct _ member(name) -> Symbol (18200.0) -
与えられた名前のアクセサメソッドを自身に定義します。
与えられた名前のアクセサメソッドを自身に定義します。
@param name 文字列かシンボルで定義するアクセサの名前を指定します。 -
Struct
# values -> [object] (18124.0) -
構造体のメンバの値を配列にいれて返します。
...列にいれて返します。
//emlist[例][ruby]{
Customer = Struct.new(:name, :address, :zip)
Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345).to_a
# => ["Joe Smith", "123 Maple, Anytown NC", 12345]
//}
[注意] 本メソッドの記述は Struct の下位クラスのインスタンス......に対して呼び
出す事を想定しています。Struct.new は Struct の下位クラスを作成する点に
注意してください。
@see d:spec/pattern_matching#matching_non_primitive_objects... -
REXML
:: StreamListener # instruction(name , instruction) -> () (15400.0) -
XML処理命令(PI)をパースしたときに呼び出されるコールバックメソッドです。
...名が文字列で渡されます
@param instruction 処理命令の内容が文字列で渡されます
=== 例
<?xml-stylesheet type="text/css" href="style.css"?>
というPIに対し
name: "xml-stylesheet"
instruction: " type=\"text/css\" href=\"style.css\""
という引数が渡されま... -
TracePoint
# instruction _ sequence -> RubyVM :: InstructionSequence (15400.0) -
script_compiledイベント発生時にコンパイルされた RubyVM::InstructionSequenceインスタンスを返します。
...pt_compiledイベント発生時にコンパイルされた
RubyVM::InstructionSequenceインスタンスを返します。
//emlist[例][ruby]{
TracePoint.new(:script_compiled) do |tp|
p tp.instruction_sequence # => <RubyVM::InstructionSequence:block in <main>@(eval):1>
end.enable do
eval("put......s 'hello'")
end
//}
@raise RuntimeError :script_compiled イベントのための
イベントフックの外側で実行した場合に発生します。... -
Struct
. json _ create(hash) -> Struct (15201.0) -
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
JSON のオブジェクトから Ruby のオブジェクトを生成して返します。
@param hash 適切なキーを持つハッシュを指定します。