るりまサーチ

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

別のキーワード

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

検索結果

<< 1 2 3 > >>

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

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

...quire '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
},
"Su...

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

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

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

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

@see Gem::SourceIndex...

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

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

...* 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...

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

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

...返します。

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

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

IRB::ExtendCommand::Source (9016.0)

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

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

絞り込み条件を変える

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

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

...e 1
C1 = 1
C2 = 2
end


module M # line 6
C3 = 3
end


class B < A # line 10
include M
C4 = 4
end


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


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

p B.const_source_location('C3', false) # => nil -- include したモジュールは検索しない

p A.const_source_location('C2') # => ["test.rb", 16] -- 最後に定義された位置を返す

p Object.const_source_locati...
...を検索する
p Object.const_source_location('A') # => ["test.rb", 1] -- クラスが再定義された場合は最初の定義位置を返す

p B.const_source_location('A') # => ["test.rb", 1] -- Object を継承している為
p M.const_source_location('A') # => ["t...

WIN32OLE_TYPE#default_event_sources -> [WIN32OLE_TYPE] (6154.0)

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

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

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

tobj = WIN32OLE_TYPE.new('Microsoft Excel 14.0 Object Library', 'Worksheet')
tobj.default_event_sources.map {|intf| intf.name} #=> ["DocEvents"]

WIN32OLE_EVENT.newでインターフェイス名を指定しない場合は、ここで
返されたイ...
...osoft 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_methods.each do |m|
WebEvent.module_eval do
define_method("on#{m....

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

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

...す。

@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...

rubygems/commands/dependency_command (6006.0)

インストールされている Gem パッケージの依存関係を表示するためのライブラリです。

...ge: gem dependency GEMNAME [options]
Options:
-v, --version VERSION 指定したバージョンの依存関係を表示します
--platform PLATFORM 指定したプラットフォームの依存関係を表示します
-R, --[no-]reverse-dependencies...
...zation (default 1000)
--source URL Gem パッケージのリモートリポジトリの URL を指定します
--[no-]http-proxy [URL] リモートの操作に HTTP プロクシを使用します
-u, --[no-]update-sources ローカルソースキ...
...ッグオプションを有効にします
Arguments:
GEMNAME 依存関係を表示する Gem の名前を指定します
Summary:
インストールされている Gem の依存関係を表示します
Defaults:
--local --version '>= 0' --no-reverse-dependencies...
<< 1 2 3 > >>