るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. ipaddr to_i
  5. csv to_i

検索結果

<< 1 2 3 > >>

irb (26150.0)

irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

...irb は Interactive Ruby の略です。
i
rb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。

=== irb の使い方

Ruby さえ知っていれば irb を使うのは簡単です。
i
rb コマンドを実行すると、以下のようなプロン...
...$ irb
i
rb(main):001:0>

あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。

i
rb(main):001:0> 1+2
3
i
rb(main):002:0> class Foo
i
rb(main):003:1> def foo
i
rb(main):004:2> print 1
i
rb(main):005:2> end
i
rb(main):006:1> end...
..._kill(n)

n で指定したサブ irb を停止します。
n は以下のいずれかの値で指定します。

//emlist{
* irb インタプリタ番号
* irb オブジェクト
* スレッド ID
* 各インタプリタの self (「irb(obj)」で起動した時の obj)
//}

: source(p...

JSON::Parser#source -> String (18213.0)

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

...返します。

//emlist[例][ruby]{
require 'json'

parser = JSON::Parser.new(DATA.read)
print parser.source

# => {
# => "Tanaka": {
# => "name":"tanaka",
# => "age":20
# => },
# => "Suzuki": {
# => "name":"suzuki",
# => "age":25
# => }
# => }

__END__
{
"Tanaka": {...
..."name":"tanaka",
"age":20
},
"Suzuki": {
"name":"suzuki",
"age":25
}
}
//}...

Gem::DependencyInstaller#find_gems_with_sources(dep) -> Array (18200.0)

与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを 返します。

...与えられた条件にマッチする Gem::Specification のインスタンスと URI のペアのリストを
返します。

Gem はローカル (Dir.pwd) とリモート (Gem.sources) の両方から検索します。
結果は、バージョンの新しい順が先にきます。また、ロ...
...ーカルの Gem も先にきます。

@param dep Gem::Dependency のインスタンスを指定します。...

Gem::DependencyList.from_source_index(src_index) -> Gem::DependencyList (15401.0)

与えられた Gem::SourceIndex のインスタンスから自身を作成します。

...与えられた Gem::SourceIndex のインスタンスから自身を作成します。

@param src_index Gem::SourceIndex を指定します。

@see Gem::SourceIndex...

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

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

...

i
rb で以下のメソッドが利用できるようになります。(それぞれ 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

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

@see IRB::ExtendCommandBundle.install_extend_commands...

絞り込み条件を変える

Module#const_source_location(name, inherited = true) -> [String, Integer] (12291.0)

name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。

...スコードのファイル名と行番号を配列で返します。

@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義された定数が対象にはなります。false を指...
...nil を返します。
定数は見つかったがソースファイルが見つからなかった場合は空の配列を返します。

//emlist[例][ruby]{
# test.rb:
class A # line 1
C1 = 1
C2 = 2
end


module M # line 6
C3 = 3
end


class B < A # line 10
i
nclu...
...4
end


class A # 継続して A を定義する
C2 = 8 # 定数を再定義する
end


p B.const_source_location('C4') # => ["test.rb", 12]
p B.const_source_location('C3') # => ["test.rb", 7]
p B.const_source_location('C1') # => ["test.rb", 2]

p B.const_source_locati...

Method#source_location -> [String, Integer] | nil (12237.0)

ソースコードのファイル名と行番号を配列で返します。

...nil を返します。

@see Proc#source_location

//emlist[例][ruby]{
# ------- /tmp/foo.rb ---------
class Foo
def foo; end
end

# ----- end of /tmp/foo.rb ----

require '/tmp/foo'

m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.source_location # => ["/tmp/foo.rb", 2]

method(:puts).source_...
...location # => nil
//}...

IRB::ExtendCommand::Source (12016.0)

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

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

Gem::Commands::DependencyCommand#find_gems(name, source_index) -> Hash (9307.0)

与えられた Gem の名前をインデックスから検索します。

...与えられた Gem の名前をインデックスから検索します。

@param name Gem の名前を指定します。

@param source_index Gem::SourceIndex のインスタンスを指定します。

@see Gem::SourceIndex#search...

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (9254.0)

型が持つソースインターフェイスを取得します。

...型が持つソースインターフェイスを取得します。

default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるイン...
...IN32OLE_TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソースインターフェイスを持
たない場合は空配列を返します。

tobj = WI...
...# coding : cp932
require 'win32ole'

type = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'InternetExplorer')
ctl = WIN32OLE.new(type.progid)
source
= type.default_event_sources[0]
class WebEvent
def initialize
@completed = false
end

attr_reader :completed
end

source
.ole_m...

絞り込み条件を変える

<< 1 2 3 > >>