るりまサーチ

最速Rubyリファレンスマニュアル検索!
50件ヒット [1-50件を表示] (0.026秒)
トップページ > クエリ:self[x] > 種類:モジュール[x]

別のキーワード

  1. object yield_self
  2. _builtin yield_self
  3. _builtin self
  4. tracepoint self
  5. codeobject document_self

ライブラリ

キーワード

検索結果

Comparable (31.0)

比較演算を許すクラスのための Mix-in です。このモジュールをインクルー ドするクラスは、基本的な比較演算子である <=> 演算子を定義してい る必要があります。

...る <=> 演算子を定義してい
る必要があります。

self
<=> other は
* self が other より大きいなら正の整数
* self と other が等しいなら 0
* self が other より小さいなら負の整数
* self と other が比較できない場合は nil
をそれぞれ返...

Observable (13.0)

Observer パターンを提供するモジュールです。

...ass to fetch a stock price (60 - 140).
def self.fetch(symbol)
60 + rand(80)
end
end

class Warner ### An abstract observer of Ticker objects.
def initialize(ticker, limit)
@limit = limit
ticker.add_observer(self)
end
end

class WarnLow < Warner...

OpenSSL::X509 (13.0)

OpenSSL の X509 証明書、CRL(証明書失効リスト)、 CSR(証明書署名要求)、証明書ストアなどに関するモジュールです。

...V_ERR_CRL_HAS_EXPIRED
* OpenSSL::X509::V_ERR_CRL_NOT_YET_VALID
* OpenSSL::X509::V_ERR_CRL_SIGNATURE_FAILURE
* OpenSSL::X509::V_ERR_DEPTH_ZERO_SELF_SIGNED_CERT
* OpenSSL::X509::V_ERR_ERROR_IN_CERT_NOT_AFTER_FIELD
* OpenSSL::X509::V_ERR_ERROR_IN_CERT_NOT_BEFORE_FIELD
* OpenSSL::X509::V_ERR...
...penSSL::X509::V_ERR_KEYUSAGE_NO_CERTSIGN
* OpenSSL::X509::V_ERR_OUT_OF_MEM
* OpenSSL::X509::V_ERR_PATH_LENGTH_EXCEEDED
* OpenSSL::X509::V_ERR_SELF_SIGNED_CERT_IN_CHAIN
* OpenSSL::X509::V_ERR_SUBJECT_ISSUER_MISMATCH
* OpenSSL::X509::V_ERR_UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY
* OpenSSL::X509...

Profiler__ (13.0)

プロファイラの実装です。 Profiler__.start_profile 実行から、Profiler__.stop_profile までの 区間の実行コードのプロファイルを取得します。

...equire 'tk' # このコードのプロファイルが測定される
Profiler__.print_profile(STDOUT)

# =>
% cumulative self self total
time seconds seconds calls ms/call ms/call name
51.64 1.10 1.10 3 366.67 776.67 Kernel....
...0.19 514 0.37 0.37 Module#method_added
6.57 1.80 0.14 1 140.00 140.00 Profiler__.start_profile
4.23 1.89 0.09 15 6.00 10.67 Kernel.extend
3.29 1.96 0.07 15 4.67 4.67 Module#extend_object
3.29 2....
...0.06 28 2.14 2.86 Module#attr
1.88 2.13 0.04 19 2.11 2.11 Module#private
1.41 2.16 0.03 29 1.03 1.38 Module#include
0.94 2.18 0.02 10 2.00 4.00 Module#module_function
0.94 2.20 0....

SingleForwardable (7.0)

オブジェクトに対し、メソッドの委譲機能を定義するモジュールです。

...ールに対して以下のようにする事もできます。

require 'forwardable'
class Implementation
def self.service
puts "serviced!"
end
end

module
Facade
extend SingleForwardable
def_delegator :Implementation, :service
end

Facade.service # => serviced!...

絞り込み条件を変える