ライブラリ
- ビルトイン (216)
-
bigdecimal
/ math (12) - cmath (48)
- delegate (24)
- etc (12)
- forwardable (84)
- getoptlong (12)
- json (24)
- matrix (24)
- mkmf (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)
- CMath (48)
- Etc (12)
-
Gem
:: QuickLoader (24) - JSON (12)
- Kernel (24)
- Math (48)
-
OpenSSL
:: SSL (24) -
REXML
:: SAX2Listener (12) - SingleForwardable (72)
- Singleton (36)
オブジェクト
- main (12)
キーワード
- HTTPProcessing (8)
- MinusInfinity (12)
- 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) - 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 (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) - 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件
-
singleton (26000.0)
-
Singleton パターンを扱うためのライブラリです。
...Singleton パターンを扱うためのライブラリです。... -
BigMath
. # sin(x , prec) -> BigDecimal (18107.0) -
x の正弦関数を prec で指定した精度で計算します。単位はラジアンです。x に無限大や NaN を指定した場合には NaN を返します。
...ト。単位はラジアン。
@param prec 計算結果の精度。
@raise ArgumentError prec に 0 以下が指定された場合に発生します。
//emlist[][ruby]{
require "bigdecimal/math"
puts BigMath::sin(BigDecimal('0.5'), 10) #=> 0.479425538604203000273287935689073955184741e0
//}... -
Math
. # sin(x) -> Float (18107.0) -
x の正弦関数(sine)の値を返します。
...x の正弦関数(sine)の値を返します。
@param x 実数(ラジアンで与えます)
@return [-1, 1] の実数
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
//e......mlist[例][ruby]{
Math.sin(Math::PI/2) # => 1.0
//}
@see Math.#asin... -
CMath
. # sin(z) -> Float | Complex (18101.0) -
z の正弦関数の値を返します。
z の正弦関数の値を返します。
@param z 数値(ラジアンで与えます)
@raise TypeError z に数値以外を指定した場合に発生します。 -
Gem
:: Specification . attribute _ alias _ singular(singular , plural) -> () (6200.0) -
既に存在する複数形の属性の単数形バージョンを定義します。
...例:
# このように定義すると
attribute_alias_singular :require_path, :require_paths
# こう書くかわりに
s.require_paths = ['mylib']
# こう書くことができます。
s.require_path = 'mylib'
@param singular 属性名の単数形を指定します。
@param plura... -
CMath
. # sin!(x) -> Float (6141.0) -
実数 x の正弦関数の値を返します。Math.#sin のエイリアス です。
....#sin のエイリアス
です。
@param x 実数(ラジアンで与えます)
@raise TypeError x に数値以外を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
require "cmath"
CMath.sin!(......0 * Math::PI / 4) # => 0.0
CMath.sin!(1 * Math::PI / 4) # => 0.7071067811865475
CMath.sin!(2 * Math::PI / 4) # => 1.0
//}
@see Math.#sin... -
Math
. # asin(x) -> Float (6106.0) -
x の逆正弦関数(arcsine)の値をラジアンで返します。
...x の逆正弦関数(arcsine)の値をラジアンで返します。
@param x -1.0 <= x <= 1 の範囲内の実数
@return 返される値の範囲は[-π/2, +π/2] です。
@raise TypeError x に数値以外を指定した場合に発生します。
@raise Math::DomainError x に範囲外......の実数を指定した場合に発生します。
@raise RangeError x に実数以外の数値を指定した場合に発生します。
//emlist[例][ruby]{
Math.asin(1) == Math::PI/2 # => true
//}
@see Math.#sin... -
BasicObject
# method _ missing(name , *args) -> object (6100.0) -
呼びだされたメソッドが定義されていなかった時、Rubyインタプリタがこのメソッド を呼び出します。
...す。
@return ユーザー定義の method_missing メソッドの返り値が未定義メソッドの返り値で
あるかのように見えます。
//emlist[例][ruby]{
class Foo
def initialize(data)
@data = data
end
def method_missing(name, lang)
if name.to_s =~ /\Afind_(\d+)_......メソッドを override する場合は対象のメソッド名に対して
Object#respond_to? が真を返すようにしてください。
そのためには、Object#respond_to_missing? も同様に override する必
要があります。
@see Object#respond_to?, Object#respond_to_missing?... -
BasicObject
# singleton _ method _ added(name) -> object (6100.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 (6100.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_...