るりまサーチ

最速Rubyリファレンスマニュアル検索!
22件ヒット [1-22件を表示] (0.021秒)
トップページ > クエリ:Symbol[x] > クエリ:symbol=[x]

別のキーワード

  1. symbol slice
  2. symbol []
  3. win32ole cp_symbol
  4. tracer event_symbol
  5. _builtin symbol

種類

ライブラリ

クラス

キーワード

検索結果

Tracer::EVENT_SYMBOL (6113.0)

トレース出力のシンボルのハッシュです。 下記のような文字列があります。

...トレース出力のシンボルのハッシュです。
下記のような文字列があります。

EVENT_SYMBOL = {
"line" => "-",
"call" => ">",
"return" => "<",
"class" => "C",
"end" => "E",
"c-call" => ">",
"c-return" => "<",
}

@see Tracer.add_filter...

Observable (36.0)

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

...### Periodically fetch a stock price.
include Observable

def initialize(symbol)
@symbol = symbol
end

def run
last_price = nil
loop do
price = Price.fetch(@symbol)
print "Current price: #{price}\n"
if price != last_price
cha...
...end
sleep 1
end
end
end

class Price ### A mock class 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)
@l...