るりまサーチ

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

別のキーワード

  1. _builtin end
  2. ripper end_seen?
  3. _builtin exclude_end?
  4. _builtin end_with?
  5. range end

検索結果

<< 1 2 3 > >>

Fiber.current -> Fiber (18125.0)

このメソッドが評価されたコンテキストにおける Fiber のインスタンスを返します。

...のメソッドが評価されたコンテキストにおける Fiber のインスタンスを返します。

//emlist[例:][ruby]{
fr = Fiber.new do
Fiber.current
end


fb = fr.resume
p fb.equal?(fr) # => true

p Fiber.current # => #<Fiber:0x91345e4>
p Fiber.current # => #<Fiber:0x91345e4>
//}...

IRB::ExtendCommandBundle.install_extend_commands -> object (9106.0)

定義済みの拡張を読み込みます。

...(それぞれ 1 つだけ抜粋)

* irb_current_working_workspace
* irb_change_workspace
* irb_workspaces
* irb_push_workspace
* irb_pop_workspace
* irb_load
* irb_require
* irb_source
* irb
* irb_jobs
* irb_fg
* irb_kill
* irb_help

irb/extend-command が require された時にライ...
...ブラリ内部で自動的
に実行されます。

@see IRB::ExtendCommandBundle.install_extend_commands...

IRB::ExtendCommand::CurrentWorkingWorkspace (9016.0)

irb 中の irb_current_working_workspace コマンドのための拡張を定義したク ラスです。

...irb 中の irb_current_working_workspace コマンドのための拡張を定義したク
ラスです。...

Rake::TaskManager#current_scope -> Array (6113.0)

現在のスコープを返します。

...現在のスコープを返します。

//emlist[][ruby]{
# Rakefile での記載例とする

task default: :test_rake_app
task :test_rake_app do
Rake.application.current_scope # => LL()
end

//}...

IRB::ExtendCommand::CurrentWorkingWorkspace#execute(*obj) -> obj (6000.0)

irb の self を返します。

irb の self を返します。

@param obj 使用しません。

絞り込み条件を変える

Gem::Dependency::TYPES -> Array (3006.0)

有効な依存関係の型を表す配列です。

...有効な依存関係の型を表す配列です。

@see Gem::Specification::CURRENT_SPECIFICATION_VERSION...

ruby 1.6 feature (306.0)

ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。

...ーになっていました。
((<ruby-dev:17155>))

open("|-","r+") {|f|
if f
f.dup.close_write
else
sleep 1
end

}

=> ruby 1.6.7 (2002-03-01) [i586-linux]
-:3:in `close_write': closing non-duplex IO for writing (IOError)
from -:3...
...トで 2 回シグナルを送らないと終了しない不具合が修正さ
れました。((<ruby-bugs-ja:PR#223>))

trap(:TERM, "EXIT")

END
{
puts "exit"
}

Thread.start { Thread.stop }
sleep

: 2002-04-17: Regexp#inspect

((<ruby-bugs-ja:PR#222>))

p %r{\/}...
...because a
foo.rb (if exists) in the current directory is located prior to a
foo.so in $prefix/lib/ruby/site_ruby/$ver/$arch.

((<ruby-bugs:PR#140>)), ((<ruby-ext:01778>)), ((<ruby-dev:13659>))

: sync
: mutex_m

Fixed for obj.extend(Sync_m) and obj.extend(Mutex_m).((<ruby-dev:13463>))

$...

パターンマッチ (298.0)

パターンマッチ * patterns * variable_binding * variable_pinning * matching_non_primitive_objects * guard_clauses * current_feature_status * pattern_syntax * some_undefined_behavior_examples

...パターンマッチ
* patterns
* variable_binding
* variable_pinning
* matching_non_primitive_objects
* guard_clauses
* current_feature_status
* pattern_syntax
* some_undefined_behavior_examples

パターンマッチは、構造化された値に対して、構造をチェック...
...case 文の中で利用できます。

case <expression>
in <pattern1>
...
in <pattern2>
...
in <pattern3>
...
else
...
end


in 節と when 節は1つの case 式の中に混ぜて書くことはできません。


case/in 式は 「網羅的」 です。もし case...
...ts "Connect with user '#{user}'"
in connection: {username: }
puts "Connect with user '#{username}'"
else
puts "Unrecognized structure of config"
end

# "Connect with user 'admin'" と出力
//}

一方、『in』 文は、期待されるデータ構造があらかじめ分かっている場合に...
...を用いて実装されています。

case <expression>
in <pattern1>
...
in <pattern2>
...
in <pattern3>
...
else
...
end


in 節と when 節は1つの case 式の中に混ぜて書くことはできません。

『=>』 演算子と in 演算子で、単体の式で...
...ts "Connect with user '#{user}'"
in connection: {username: }
puts "Connect with user '#{username}'"
else
puts "Unrecognized structure of config"
end

# "Connect with user 'admin'" と出力
//}

一方、『=>』 演算子は、期待されるデータ構造があらかじめ分かっている場...

Observable (120.0)

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

...ch 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
changed # noti...
...notify_observers(Time.now, price)
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....
...imit = limit
ticker.add_observer(self)
end

end


class WarnLow < Warner
def update(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(t...
<< 1 2 3 > >>