475件ヒット
[1-100件を表示]
(0.134秒)
種類
- インスタンスメソッド (223)
- 特異メソッド (96)
- ライブラリ (84)
- モジュール関数 (72)
ライブラリ
- ビルトイン (235)
-
irb
/ cmd / load (12) - json (84)
- objspace (24)
-
rubygems
/ source _ index (12) - un (12)
- win32ole (12)
クラス
- Binding (7)
-
Encoding
:: Converter (132) -
Gem
:: SourceIndex (12) -
IRB
:: ExtendCommand :: Source (12) -
JSON
:: Parser (36) - Method (24)
- Module (12)
- Proc (12)
- Regexp (12)
-
RubyVM
:: InstructionSequence (24) - UnboundMethod (12)
-
WIN32OLE
_ TYPE (12)
モジュール
- JSON (48)
- Kernel (12)
- ObjectSpace (24)
キーワード
-
allocation
_ sourcefile (12) -
allocation
_ sourceline (12) - compile (12)
-
const
_ source _ location (12) - convert (12)
-
default
_ event _ sources (12) - execute (12)
- inspect (6)
- install (12)
- load (12)
-
load
_ specification (12) - new (60)
- parse (24)
- parse! (12)
-
primitive
_ convert (48) -
primitive
_ errinfo (12) - rdoc (12)
- restore (12)
-
rubygems
/ commands / fetch _ command (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / list _ command (12) -
rubygems
/ commands / outdated _ command (12) -
rubygems
/ commands / specification _ command (12) -
rubygems
/ source _ info _ cache _ entry (12) -
search
_ convpath (12) -
source
_ encoding (12) -
source
_ location (43) -
to
_ s (6)
検索結果
先頭5件
-
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",... -
Regexp
# source -> String (18213.0) -
その正規表現のもととなった文字列表現を生成して返します。
...その正規表現のもととなった文字列表現を生成して返します。
//emlist[例][ruby]{
re = /foo|bar|baz/i
p re.source # => "foo|bar|baz"
//}... -
rubygems
/ source _ info _ cache _ entry (18000.0) -
Gem::SourceInfoCache が持つエントリを表すためのライブラリです。
...Gem::SourceInfoCache が持つエントリを表すためのライブラリです。... -
WIN32OLE
_ TYPE # default _ event _ sources -> [WIN32OLE _ TYPE] (15348.0) -
型が持つソースインターフェイスを取得します。
...す。
default_event_sourcesメソッドは、selfがCoClass(コンポーネントクラス)
の場合、そのクラスがサポートするデフォルトのソースインターフェイス(イ
ベントの通知元となるインターフェイス)を返します。
@return デフォ......TYPEの配列と
して返します。返すのは配列ですが、デフォルトのソースインターフェ
イスは最大でも1インターフェイスです。ソースインターフェイスを持
たない場合は空配列を返します。
tobj = WIN32OLE_T......method("on#{m.name}") do |*arg|
if arg[0] == "ページが表示されました"
@completed = true
end
puts "#{Time.now}: #{m.name} was called"
p arg
end
end
end
evt = WIN32OLE_EVENT.new(ctl)
evt.handler = WebEvent.new
ctl.navigate2 'http://www.ruby-l... -
Module
# const _ source _ location(name , inherited = true) -> [String , Integer] (12273.0) -
name で指定した定数の定義を含むソースコードのファイル名と行番号を配列で返します。
...@param name Symbol,String で定数の名前を指定します。
@param inherited true を指定するとスーパークラスや include したモジュールで定義された定数が対象にはなります。false を指定した場合 対象にはなりません。
@return ソースコー......st[例][ruby]{
# test.rb:
class A # line 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......12]
p B.const_source_location('C3') # => ["test.rb", 7]
p 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] --... -
Proc
# source _ location -> [String , Integer] | nil (12243.0) -
ソースコードのファイル名と行番号を配列で返します。
...クトが ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
# /path/to/target.rb を実行
proc {}.source_location # => ["/path/to/target.rb", 1]
proc {}.source_location # => ["/path/to/target.rb", 2]
(ev......al "proc {}").source_location # => ["(eval)", 1]
method(:p).to_proc.source_location # => nil
//}
@see Method#source_location... -
UnboundMethod
# source _ location -> [String , Integer] | nil (12243.0) -
ソースコードのファイル名と行番号を配列で返します。
... ruby で定義されていない(つまりネイティブ
である)場合は nil を返します。
//emlist[例][ruby]{
require 'time'
Time.instance_method(:zone).source_location # => nil
Time.instance_method(:httpdate).source_location # => ["/Users/user/.rbenv/versions/2.4.3/lib/ruby/2.......4.0/time.rb", 654]
//}
@see Proc#source_location, Method#source_location... -
Method
# source _ location -> [String , Integer] | nil (12231.0) -
ソースコードのファイル名と行番号を配列で返します。
... ruby で定義されていない(つまりネイティブ
である)場合は 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) # => #<Met......hod: Foo#foo>
m.source_location # => ["/tmp/foo.rb", 2]
method(:puts).source_location # => nil
//}... -
Binding
# source _ location -> [String , Integer] (12229.0) -
self の Ruby のソースファイル名と行番号を返します。
...self の Ruby のソースファイル名と行番号を返します。
d:spec/variables#pseudo の __FILE__ と __LINE__ も参照してください。
//emlist[例][ruby]{
p binding.source_location # => ["test.rb", 1]
//}...