るりまサーチ

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

別のキーワード

  1. time iso8601
  2. time rfc2822
  3. time httpdate
  4. time parse
  5. time strptime

ライブラリ

検索結果

Observable (37.0)

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

...e}\n"
if price != last_price
changed # notify observers
last_price = price
notify_observers(Time.now, price)
end
sleep 1
end
end
end

class Price ### A mock class to fetch a stock price (60 - 140).
def...
...date(time, price) # callback for observer
if price < @limit
print "--- #{time.to_s}: Price below #@limit: #{price}\n"
end
end
end

class WarnHigh < Warner
def update(time, price) # callback for observer
if price > @limit
print "+++ #{time.to_...