942件ヒット
[1-100件を表示]
(0.069秒)
ライブラリ
- ビルトイン (204)
-
bigdecimal
/ math (12) - cmath (48)
- delegate (24)
- forwardable (84)
- getoptlong (12)
- json (12)
- matrix (24)
- mkmf (24)
- openssl (36)
- pp (12)
- prettyprint (12)
- psych (12)
-
rdoc
/ context (84) -
rdoc
/ parser / ruby (12) -
rdoc
/ single _ class (12) -
rdoc
/ top _ level (48) -
rexml
/ sax2listener (12) - rubygems (24)
-
rubygems
/ specification (12) -
shell
/ process-controller (6) - singleton (48)
- tracer (12)
- win32ole (12)
クラス
- BasicObject (36)
- 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)
- CMath (48)
-
Gem
:: QuickLoader (24) - JSON (12)
- Kernel (24)
- Math (48)
-
OpenSSL
:: SSL (24) -
REXML
:: SAX2Listener (12) - SingleForwardable (72)
- Singleton (36)
オブジェクト
- main (12)
キーワード
- MinusInfinity (12)
- MissingArgument (12)
-
OP
_ SINGLE _ DH _ USE (12) -
OP
_ SINGLE _ ECDH _ USE (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) - asin (18)
- asin! (6)
- asinh (18)
- asinh! (6)
-
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 (36) -
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) - sin! (6)
-
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)
- sinh (18)
- sinh! (6)
-
try
_ link (24) - using (24)
検索結果
先頭5件
-
SingleForwardable
# def _ single _ delegator(accessor , method , ali = method) -> () (21300.0) -
メソッドの委譲先を設定します。
...メソッド
@param ali 委譲元のメソッド
委譲元のオブジェクトで ali が呼び出された場合に、
委譲先のオブジェクトの method へ処理が委譲されるようになります。
委譲元と委譲先のメソッド名が同じ場合は, ali を省略するこ......とが可能です。
def_delegator は def_singleton_delegator の別名になります。
@see SingleForwardable#def_delegators... -
SingleForwardable
# def _ single _ delegators(accessor , *methods) -> () (21300.0) -
メソッドの委譲先をまとめて設定します。
...delegators は def_singleton_delegators の別名になります。
また、以下の 2 つの例は同じ意味です。
def_delegators :@records, :size, :<<, :map
def_delegator :@records, :size
def_delegator :@records, :<<
def_delegator :@records, :map
@see SingleForwardable#def_deleg... -
SingleForwardable
# single _ delegate(hash) -> () (21300.0) -
メソッドの委譲先を設定します。
...メソッドの委譲先を設定します。
@param hash 委譲先のメソッドがキー、委譲先のオブジェクトが値の
Hash を指定します。キーは Symbol、
String かその配列で指定します。
@see Forwardable#delegate... -
BigMath
. # sin(x , prec) -> BigDecimal (18207.0) -
x の正弦関数を prec で指定した精度で計算します。単位はラジアンです。x に無限大や NaN を指定した場合には NaN を返します。
...x 計算対象の BigDecimal オブジェクト。単位はラジアン。
@param prec 計算結果の精度。
@raise ArgumentError prec に 0 以下が指定された場合に発生します。
//emlist[][ruby]{
require "bigdecimal/math"
puts BigMath::sin(BigDecimal('0.5'), 10) #=> 0.47942553... -
Math
. # sin(x) -> Float (18207.0) -
x の正弦関数(sine)の値を返します。
...関数(sine)の値を返します。
@param x 実数(ラジアンで与えます)
@return [-1, 1] の実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
//emlist[例][r......uby]{
Math.sin(Math::PI/2) # => 1.0
//}
@see Math.#asin... -
CMath
. # sin(z) -> Float | Complex (18201.0) -
z の正弦関数の値を返します。
z の正弦関数の値を返します。
@param z 数値(ラジアンで与えます)
@raise TypeError z に数値以外を指定した場合に発生します。 -
SingleForwardable (18000.0)
-
オブジェクトに対し、メソッドの委譲機能を定義するモジュールです。
...quire 'forwardable'
g = Goo.new
g.extend SingleForwardable
g.def_delegator("@out", :puts)
g.puts ...
また、SingleForwardable はクラスやモジュールに対して以下のようにする事もできます。
require 'forwardable'
class Implementation
def self.service......viced!"
end
end
module Facade
extend SingleForwardable
def_delegator :Implementation, :service
end
Facade.service # => serviced!
もし Forwardable と SingleForwardable の両方を使いたい場合、
def_instance_delegator と def_single_delegator メソッドの方を... -
Module
# singleton _ class? -> bool (15200.0) -
self が特異クラスの場合に true を返します。そうでなければ false を返し ます。
...self が特異クラスの場合に true を返します。そうでなければ false を返し
ます。
//emlist[例][ruby]{
class C
end
C.singleton_class? # => false
C.singleton_class.singleton_class? # => true
//}... -
OpenSSL
:: SSL :: OP _ SINGLE _ DH _ USE -> Integer (15200.0) -
一時的 DH 鍵を使うとき毎回鍵を生成するフラグです。
...生成したときに「small subgroup attack」を防ぐために必要です。
「安全な」素数を使った場合は必ずしも必要なオプションでは
ありませんが、このオプションを使うことは推奨されています。
OpenSSL::SSL::SSLContext#options= で利用...