890件ヒット
[1-100件を表示]
(0.048秒)
別のキーワード
ライブラリ
- ビルトイン (168)
-
bigdecimal
/ math (12) - delegate (24)
- etc (12)
- forwardable (84)
- getoptlong (12)
- json (12)
- matrix (24)
-
net
/ http (8) - openssl (36)
- optparse (12)
- pp (12)
- prettyprint (12)
- psych (12)
-
rdoc
/ context (84) -
rdoc
/ parser / ruby (12) -
rdoc
/ single _ class (12) -
rdoc
/ top _ level (48) -
rexml
/ sax2listener (12) - rss (24)
- rubygems (24)
-
rubygems
/ specification (12) -
shell
/ process-controller (6) - singleton (48)
- tracer (12)
- win32ole (12)
クラス
- BasicObject (48)
- Delegator (24)
-
Gem
:: Specification (12) - Matrix (12)
-
Matrix
:: LUPDecomposition (12) - Module (36)
- Object (72)
-
OpenSSL
:: PKCS7 (12) - PP (12)
- PrettyPrint (12)
-
Psych
:: Nodes :: Scalar (12) -
RDoc
:: Context (84) -
RDoc
:: Parser :: Ruby (12) -
RDoc
:: TopLevel (48) -
Shell
:: ProcessController (6) - Tracer (12)
- WIN32OLE (12)
モジュール
- BigMath (12)
- Etc (12)
-
Gem
:: QuickLoader (24) -
OpenSSL
:: SSL (24) -
REXML
:: SAX2Listener (12) - SingleForwardable (72)
- Singleton (36)
オブジェクト
- main (12)
キーワード
- HTTPProcessing (8)
- MissingArgument (24)
- MissingAttributeError (12)
- MissingTagError (12)
- MissingUnicodeSupport (12)
-
OP
_ SINGLE _ DH _ USE (12) -
OP
_ SINGLE _ ECDH _ USE (12) -
SC
_ MESSAGE _ PASSING (12) - SINGLE (12)
-
SINGLE
_ QUOTED (12) - Single (12)
- SingleClass (12)
- SingleForwardable (12)
- Singleton (12)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) -
add
_ class (12) -
add
_ class _ or _ module (24) -
add
_ module (12) -
add
_ signer (12) -
all
_ classes _ and _ modules (12) -
attribute
_ alias _ singular (12) - bigdecimal (12)
-
bigdecimal
/ math (12) - classes (12)
- clone (12)
-
const
_ missing (24) -
def
_ delegator (12) -
def
_ delegators (12) -
def
_ single _ delegator (12) -
def
_ single _ delegators (12) -
define
_ singleton _ method (24) - delegate (12)
- dup (12)
-
each
_ classmodule (12) -
find
_ class _ named (12) -
find
_ enclosing _ module _ named (12) -
find
_ local _ symbol (12) - instance (12)
-
method
_ missing (48) -
processing
_ instruction (12) -
rb
_ define _ singleton _ method (12) -
rb
_ f _ missing (12) -
rb
_ obj _ singleton _ methods (12) -
rb
_ singleton _ class (12) -
rb
_ singleton _ class _ attached (12) -
rb
_ singleton _ class _ clone (12) -
rb
_ singleton _ class _ new (12) -
rdoc
/ single _ class (12) -
respond
_ to _ missing? (24) -
run
_ single _ final (12) -
set
_ visibility _ for (12) -
single
_ delegate (12) -
singleline
_ format (12) -
singleline
_ pp (12) - singleton (12)
-
singleton
_ class (12) -
singleton
_ class? (12) -
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) -
singleton
_ methods (12) - singular? (24)
- using (24)
検索結果
先頭5件
-
BigMath
. # sin(x , prec) -> BigDecimal (21207.0) -
x の正弦関数を prec で指定した精度で計算します。単位はラジアンです。x に無限大や NaN を指定した場合には NaN を返します。
...@param x 計算対象の BigDecimal オブジェクト。単位はラジアン。
@param prec 計算結果の精度。
@raise ArgumentError prec に 0 以下が指定された場合に発生します。
//emlist[][ruby]{
require "bigdecimal/math"
puts BigMath::sin(BigDecimal('0.5'), 10) #=> 0.4... -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (12400.0) -
既に存在する複数形の属性の単数形バージョンを定義します。
...例:
# このように定義すると
attribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'
@param singular 属性名の単数形を指定します。
@param plura... -
BasicObject
# method _ missing(name , *args) -> object (12200.0) -
呼びだされたメソッドが定義されていなかった時、Rubyインタプリタがこのメソッド を呼び出します。
...gs 未定義メソッドに渡された引数です。
@return ユーザー定義の method_missing メソッドの返り値が未定義メソッドの返り値で
あるかのように見えます。
//emlist[例][ruby]{
class Foo
def initialize(data)
@data = data
end
def method_missin......g(name, lang)
if name.to_s =~ /\Afind_(\d+)_in\z/
if @data[lang]
p @data[lang][$1.to_i]
else
raise "#{lang} unknown"
end
else
super
end
end
end
dic = Foo.new({:English => %w(zero one two), :Esperanto => %w(nulo unu du)})
dic.find_2_in :Esperanto......メソッドを override する場合は対象のメソッド名に対して
Object#respond_to? が真を返すようにしてください。
そのためには、Object#respond_to_missing? も同様に override する必
要があります。
@see Object#respond_to?, Object#respond_to_missing?... -
BasicObject
# singleton _ method _ added(name) -> object (12200.0) -
特異メソッドが追加された時にインタプリタから呼び出されます。
...emlist[例][ruby]{
class Foo
def singleton_method_added(name)
puts "singleton method \"#{name}\" was added"
end
end
obj = Foo.new
def obj.foo
end
#=> singleton method "foo" was added
//}
@see Module#method_added,BasicObject#singleton_method_removed,BasicObject#singleton_method_undefined... -
BasicObject
# singleton _ method _ removed(name) -> object (12200.0) -
特異メソッドが Module#remove_method に より削除された時にインタプリタから呼び出されます。
...o
def singleton_method_removed(name)
puts "singleton method \"#{name}\" was removed"
end
end
obj = Foo.new
def obj.foo
end
class << obj
remove_method :foo
end
#=> singleton method "foo" was removed
//}
@see Module#method_removed,BasicObject#singleton_method_added,BasicObject#singleton_... -
BasicObject
# singleton _ method _ undefined(name) -> object (12200.0) -
特異メソッドが Module#undef_method または undef により未定義にされた時にインタプリタから呼び出されます。
...y]{
class Foo
def singleton_method_undefined(name)
puts "singleton method \"#{name}\" was undefined"
end
end
obj = Foo.new
def obj.foo
end
def obj.bar
end
class << obj
undef_method :foo
end
obj.instance_eval {undef bar}
#=> singleton method "foo" was undefined
# singleton method "bar"......was undefined
//}
@see Module#method_undefined,BasicObject#singleton_method_added,BasicObject#singleton_method_removed , d:spec/def#undef... -
Delegator
# method _ missing(m , *args) -> object (12200.0) -
渡されたメソッド名と引数を使って、Delegator#__getobj__ が返すオブジェクトへメソッド委譲を行います。
...名と引数を使って、Delegator#__getobj__ が返すオブジェクトへメソッド委譲を行います。
@param m メソッドの名前(シンボル)
@param args メソッドに渡された引数
@return 委譲先のメソッドからの返り値
@see BasicObject#method_missing... -
Delegator
# respond _ to _ missing?(m , include _ private) -> bool (12200.0) -
@param m メソッド名を指定します。
@param m メソッド名を指定します。
@param include_private 真を指定すると private メソッドも調べます。 -
Gem
:: QuickLoader # const _ missing (12200.0) -
prelude.c で定義されている内部用のメソッドです。
prelude.c で定義されている内部用のメソッドです。