207件ヒット
[1-100件を表示]
(0.143秒)
種類
- インスタンスメソッド (125)
- 特異メソッド (33)
- ライブラリ (22)
- クラス (22)
- 文書 (5)
ライブラリ
- ビルトイン (81)
-
irb
/ cmd / load (22) -
irb
/ extend-command (11) - json (22)
-
rubygems
/ commands / dependency _ command (11) -
rubygems
/ dependency _ installer (11) -
rubygems
/ dependency _ list (11) - win32ole (11)
クラス
-
Encoding
:: Converter (44) -
Gem
:: Commands :: DependencyCommand (11) -
Gem
:: DependencyInstaller (11) -
Gem
:: DependencyList (11) -
IRB
:: ExtendCommand :: Source (11) -
JSON
:: Parser (22) - Method (21)
- Module (5)
-
WIN32OLE
_ TYPE (11)
モジュール
キーワード
-
NEWS for Ruby 2
. 7 . 0 (5) - UndefinedConversionError (11)
-
const
_ source _ location (5) -
default
_ event _ sources (11) - execute (11)
-
find
_ gems (11) -
find
_ gems _ with _ sources (11) -
from
_ source _ index (11) - inspect (5)
-
install
_ extend _ commands (11) - irb (11)
- new (11)
-
primitive
_ convert (44) - rdoc (11)
- source (11)
-
source
_ location (11) -
to
_ s (5)
検索結果
先頭5件
-
irb (26150.0)
-
irb は Interactive Ruby の略です。 irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
...irb は Interactive Ruby の略です。
irb を使うと、Ruby の式を標準入力から簡単に入力・実行することができます。
=== irb の使い方
Ruby さえ知っていれば irb を使うのは簡単です。
irb コマンドを実行すると、以下のようなプロン......$ irb
irb(main):001:0>
あとは Ruby の式を入力するだけで、その式が実行され、結果が表示されます。
irb(main):001:0> 1+2
3
irb(main):002:0> class Foo
irb(main):003:1> def foo
irb(main):004:2> print 1
irb(main):005:2> end
irb(main):006:1> end......_kill(n)
n で指定したサブ irb を停止します。
n は以下のいずれかの値で指定します。
//emlist{
* irb インタプリタ番号
* irb オブジェクト
* スレッド ID
* 各インタプリタの self (「irb(obj)」で起動した時の obj)
//}
: source(p... -
IRB
:: ExtendCommand :: Source (24016.0) -
irb 中の irb_source コマンドのための拡張を定義したクラスです。
...irb 中の irb_source コマンドのための拡張を定義したクラスです。... -
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) -
定義済みの拡張を読み込みます。
...
irb で以下のメソッドが利用できるようになります。(それぞれ 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... -
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
inclu......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
//}... -
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... -
IRB
:: ExtendCommand :: Source # execute(file _ name) -> nil (9200.0) -
現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。
...現在の irb インタプリタ上で、 Ruby スクリプト path を評価します。
path の内容を irb で一行ずつタイプしたかのように、irb 上で一行ずつ評価
されます。$" は更新されず、何度でも実行し直す事ができます。
@param file_name フ...