868件ヒット
[1-100件を表示]
(0.095秒)
ライブラリ
- ビルトイン (187)
-
bigdecimal
/ math (11) - cmath (48)
- delegate (22)
- forwardable (77)
- getoptlong (11)
- json (11)
- matrix (22)
- mkmf (22)
- openssl (33)
- pp (11)
- prettyprint (11)
- psych (11)
-
rdoc
/ context (77) -
rdoc
/ parser / ruby (11) -
rdoc
/ single _ class (11) -
rdoc
/ top _ level (44) -
rexml
/ sax2listener (11) - rubygems (22)
-
rubygems
/ specification (11) -
shell
/ process-controller (6) - singleton (44)
- tracer (11)
- win32ole (11)
クラス
- BasicObject (33)
- Delegator (22)
-
Gem
:: Specification (11) - Matrix (11)
-
Matrix
:: LUPDecomposition (11) - Module (33)
- Object (66)
-
OpenSSL
:: PKCS7 (11) - PP (11)
- PrettyPrint (11)
-
Psych
:: Nodes :: Scalar (11) -
RDoc
:: Context (77) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: TopLevel (44) -
Shell
:: ProcessController (6) - Tracer (11)
- WIN32OLE (11)
モジュール
- BigMath (11)
- CMath (48)
-
Gem
:: QuickLoader (22) - JSON (11)
- Kernel (22)
- Math (44)
-
OpenSSL
:: SSL (22) -
REXML
:: SAX2Listener (11) - SingleForwardable (66)
- Singleton (33)
オブジェクト
- main (11)
キーワード
- MinusInfinity (11)
- MissingArgument (11)
-
OP
_ SINGLE _ DH _ USE (11) -
OP
_ SINGLE _ ECDH _ USE (11) - SINGLE (11)
-
SINGLE
_ QUOTED (11) - Single (11)
- SingleClass (11)
- SingleForwardable (11)
- Singleton (11)
-
USING
_ AT _ EXIT _ WHEN _ PROCESS _ EXIT (6) -
add
_ class (11) -
add
_ class _ or _ module (22) -
add
_ module (11) -
add
_ signer (11) -
all
_ classes _ and _ modules (11) - asin (17)
- asin! (6)
- asinh (17)
- asinh! (6)
-
attribute
_ alias _ singular (11) - bigdecimal (11)
-
bigdecimal
/ math (11) - classes (11)
- clone (11)
-
const
_ missing (22) -
def
_ delegator (11) -
def
_ delegators (11) -
def
_ single _ delegator (11) -
def
_ single _ delegators (11) -
define
_ singleton _ method (22) - delegate (11)
- dup (11)
-
each
_ classmodule (11) -
find
_ class _ named (11) -
find
_ enclosing _ module _ named (11) -
find
_ local _ symbol (11) - instance (11)
-
method
_ missing (33) -
processing
_ instruction (11) -
rb
_ define _ singleton _ method (11) -
rb
_ f _ missing (11) -
rb
_ obj _ singleton _ methods (11) -
rb
_ singleton _ class (11) -
rb
_ singleton _ class _ attached (11) -
rb
_ singleton _ class _ clone (11) -
rb
_ singleton _ class _ new (11) -
rdoc
/ single _ class (11) -
respond
_ to _ missing? (22) -
run
_ single _ final (11) -
set
_ visibility _ for (11) - sin! (6)
-
single
_ delegate (11) -
singleline
_ format (11) -
singleline
_ pp (11) - singleton (11)
-
singleton
_ class (11) -
singleton
_ class? (11) -
singleton
_ method (11) -
singleton
_ method _ added (11) -
singleton
_ method _ removed (11) -
singleton
_ method _ undefined (11) -
singleton
_ methods (11) - singular? (22)
- sinh (17)
- sinh! (6)
-
try
_ link (22) - using (22)
検索結果
先頭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= で利用... -
OpenSSL
:: SSL :: OP _ SINGLE _ ECDH _ USE -> Integer (15200.0) -
@todo OpenSSL::SSL::SSLContext#options= で利用します。
...@todo
OpenSSL::SSL::SSLContext#options= で利用します。...