389件ヒット
[1-100件を表示]
(0.044秒)
ライブラリ
- ビルトイン (132)
- etc (24)
- json (48)
-
net
/ imap (12) - openssl (48)
- profiler (6)
- psych (12)
-
rdoc
/ code _ object (12) -
rexml
/ document (12) -
rubygems
/ specification (12) - win32ole (12)
クラス
- BasicObject (24)
-
Gem
:: Specification (12) -
JSON
:: Parser (24) -
Net
:: IMAP :: FetchData (12) - Object (24)
-
OpenSSL
:: X509 :: Attribute (48) -
REXML
:: Attribute (12) -
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (96)
- Etc (24)
- JSON (12)
-
JSON
:: Generator :: GeneratorMethods :: Object (12)
キーワード
- ! (12)
- != (12)
- CodeObject (12)
-
NEWS for Ruby 2
. 3 . 0 (10) -
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 3
. 0 . 0 (5) -
Profiler
_ _ (6) -
SC
_ SHARED _ MEMORY _ OBJECTS (12) -
SC
_ TYPED _ MEMORY _ OBJECTS (12) -
array
_ attributes (12) -
create
_ id (12) -
default
_ event _ sources (12) -
initialize
_ copy (12) - max (48)
- min (48)
- new (36)
- oid (12)
- oid= (12)
- parse (12)
-
ruby 1
. 6 feature (12) -
ruby 1
. 9 feature (12) -
to
_ json (12) - write (12)
-
yaml
_ tag (12) - クラス/メソッドの定義 (12)
検索結果
先頭5件
-
Object
# initialize _ copy(obj) -> object (21191.0) -
(拡張ライブラリによる) ユーザ定義クラスのオブジェクトコピーの初期化メソッド。
...elf のインスタンス変数や特異メソッドは変化しません。
デフォルトでは、Object#clone の内部で Object#initialize_clone から、
また Object#dup の内部で Object#initialize_dup から呼ばれます。
initialize_copy は、Ruby インタプリタが知り得......alize_copy でコピーするよう定義しておくことで、dup や clone
を再定義する必要がなくなります。
デフォルトの Object#initialize_copy は、 freeze チェックおよび型のチェックを行い self
を返すだけのメソッドです。
initialize_copy と......j = Object.new
class <<obj
attr_accessor :foo
def bar
:bar
end
end
def check(obj)
puts "instance variables: #{obj.inspect}"
puts "tainted?: #{obj.tainted?}"
print "singleton methods: "
begin
p obj.bar
rescue NameError
p $!
end
end
obj.foo = 1
obj.taint
check Object.n......//emlist[][ruby]{
obj = Object.new
class <<obj
attr_accessor :foo
def bar
:bar
end
end
def check(obj)
puts "instance variables: #{obj.inspect}"
print "singleton methods: "
begin
p obj.bar
rescue NameError
p $!
end
end
obj.foo = 1
check Object.new.send(:initialize_cop... -
Object
. yaml _ tag(tag) -> () (21030.0) -
クラスと tag の間を関連付けます。
...ialize(x)
@x = x
end
attr_reader :x
end
# Dumps Ruby object normally
p Psych.dump(Foo.new(3))
# =>
# --- !ruby/object:Foo
# x: 3
# Registers tag with class Foo
Foo.yaml_as("tag:example.com,2013:foo")
# ... and dumps the object of Foo class
Psych.dump(Foo.......new(3), STDOUT)
# =>
# --- !<tag:example.com,2013:foo>
# x: 3
# Loads the object from the tagged YAML node
p Psych.load(<<EOS)
--- !<tag:example.com,2012:foo>
x: 8
EOS
# => #<Foo:0x0000000130f48 @x=8>... -
Net
:: IMAP :: FetchData # attr -> { String => object } (18202.0) -
各メッセージのアトリビュートの値をハッシュテーブルで返します。
各メッセージのアトリビュートの値をハッシュテーブルで返します。
キーはアトリビュート名の文字列、値はアトリビュートの値となります。
値のクラスはアトリビュートによって異なります。
利用可能なアトリビュートは以下の通りです。
: BODY
BODYSTRUCTURE の拡張データなしの形式。
Net::IMAP::BodyTypeBasic, Net::IMAP::BodyTypeText,
Net::IMAP::BodyTypeMessage, Net::IMAP::BodyTypeMultipart
のいずれか。
: BODY[<section>]<<... -
Gem
:: Specification . array _ attributes -> Array (6106.0) -
@@array_attributes の複製を返します。
...@@array_attributes の複製を返します。
@see Object#dup... -
RDoc
:: CodeObject (6006.0) -
RDoc のコードツリーを表現するクラスの基本クラスです。
...RDoc のコードツリーを表現するクラスの基本クラスです。
以下は RDoc::CodeObject のサブクラスのツリーです。
//emlist{
* RDoc::Context
* RDoc::TopLevel
* RDoc::ClassModule
* RDoc::AnonClass
* RDoc::NormalClass
* RDoc::NormalModule
* RD......oc::SingleClass
* RDoc::AnyMethod
* RDoc::GhostMethod
* RDoc::MetaMethod
* RDoc::Alias
* RDoc::Attr
* RDoc::Constant
* RDoc::Require
* RDoc::Include
//}... -
OpenSSL
:: X509 :: Attribute . new(der) -> OpenSSL :: X509 :: Attribute (3118.0) -
attribute オブジェクトを生成します。
...attribute オブジェクトを生成します。
引数が1個で、文字列であるならば、それを DER 形式の
データであると見なして attribute オブジェクトを生成します。
引数が1個で、それ以外の場合は to_der メソッドで DER 形式に変換して......から
それを attribute オブジェクトに変換します。
引数が2個の場合は、それぞれを attribute の Object ID (識別子)と
値(内容)と見なして attribute オブジェクトを生成します。
この場合、oid は Object ID の文字列、value には
OpenSSL::AS......r DER 形式の文字列、もしくは to_der を持つオブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X509::AttributeError attributeオブジェクトの生成に失敗した場合に
発生します。DE... -
OpenSSL
:: X509 :: Attribute . new(oid , value) -> OpenSSL :: X509 :: Attribute (3118.0) -
attribute オブジェクトを生成します。
...attribute オブジェクトを生成します。
引数が1個で、文字列であるならば、それを DER 形式の
データであると見なして attribute オブジェクトを生成します。
引数が1個で、それ以外の場合は to_der メソッドで DER 形式に変換して......から
それを attribute オブジェクトに変換します。
引数が2個の場合は、それぞれを attribute の Object ID (識別子)と
値(内容)と見なして attribute オブジェクトを生成します。
この場合、oid は Object ID の文字列、value には
OpenSSL::AS......r DER 形式の文字列、もしくは to_der を持つオブジェクト
@param oid Object ID 文字列
@param value 値を表す OpenSSL::ASN1::ASN1Data インスタンス
@raise OpenSSL::X509::AttributeError attributeオブジェクトの生成に失敗した場合に
発生します。DE... -
Etc
:: SC _ SHARED _ MEMORY _ OBJECTS -> Integer (3102.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。 -
Etc
:: SC _ TYPED _ MEMORY _ OBJECTS -> Integer (3102.0) -
Etc.#sysconf の引数に指定します。
Etc.#sysconf の引数に指定します。
詳細は sysconf(3) を参照してください。