ライブラリ
- ビルトイン (198)
-
bigdecimal
/ math (11) - cmath (48)
- delegate (22)
- etc (11)
- forwardable (77)
- getoptlong (11)
- json (22)
- matrix (22)
- mkmf (22)
-
net
/ http (7) - openssl (33)
- optparse (11)
- pp (11)
- prettyprint (11)
- psych (11)
-
rdoc
/ context (77) -
rdoc
/ parser / ruby (11) -
rdoc
/ single _ class (11) -
rdoc
/ top _ level (44) -
rexml
/ sax2listener (11) - rss (22)
- rubygems (22)
-
rubygems
/ specification (11) -
shell
/ process-controller (6) - singleton (44)
- tracer (11)
- win32ole (11)
クラス
- BasicObject (44)
- 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)
- Etc (11)
-
Gem
:: QuickLoader (22) - JSON (11)
- Kernel (22)
- Math (44)
-
OpenSSL
:: SSL (22) -
REXML
:: SAX2Listener (11) - SingleForwardable (66)
- Singleton (33)
オブジェクト
- main (11)
キーワード
- HTTPProcessing (7)
- MinusInfinity (11)
- MissingArgument (22)
- MissingAttributeError (11)
- MissingTagError (11)
- MissingUnicodeSupport (11)
-
OP
_ SINGLE _ DH _ USE (11) -
OP
_ SINGLE _ ECDH _ USE (11) -
SC
_ MESSAGE _ PASSING (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 (44) -
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件
-
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_...