284件ヒット
[1-100件を表示]
(0.171秒)
種類
- 特異メソッド (152)
- インスタンスメソッド (110)
- ライブラリ (11)
- 定数 (11)
ライブラリ
- ビルトイン (45)
-
irb
/ cmd / load (33) -
irb
/ input-method (33) - rake (11)
-
rdoc
/ code _ object (11) -
rdoc
/ parser (22) -
rdoc
/ parser / c (11) -
rdoc
/ parser / ruby (11) -
rdoc
/ parser / simple (11) -
rdoc
/ top _ level (11) -
rubygems
/ config _ file (22) -
rubygems
/ installer (11) -
rubygems
/ source _ index (11) -
rubygems
/ specification (11) -
yaml
/ store (19)
クラス
- Dir (20)
- File (25)
-
Gem
:: ConfigFile (22) -
Gem
:: Installer (11) -
Gem
:: SourceIndex (11) -
Gem
:: Specification (11) -
IRB
:: ExtendCommand :: Load (11) -
IRB
:: ExtendCommand :: Require (11) -
IRB
:: ExtendCommand :: Source (11) -
IRB
:: InputMethod (22) -
RDoc
:: CodeObject (11) -
RDoc
:: Parser (22) -
RDoc
:: Parser :: C (11) -
RDoc
:: Parser :: Ruby (11) -
RDoc
:: Parser :: Simple (11) -
RDoc
:: TopLevel (11) -
Rake
:: FileList (11) -
YAML
:: Store (19)
モジュール
- IRB (11)
キーワード
-
STDIN
_ FILE _ NAME (11) -
absolute
_ path (11) -
absolute
_ path? (5) -
can
_ parse (11) -
config
_ file _ name (11) -
excluded
_ from _ list? (11) - execute (33)
- exist? (11)
- exists? (9)
- irb (11)
-
load
_ file (11) -
load
_ specification (11) - mkfifo (9)
- new (74)
-
parent
_ file _ name (11) -
parser
_ for (11) - shebang (11)
検索結果
先頭5件
-
Gem
:: Specification # file _ name -> String (30301.0) -
生成される Gem パッケージの名前を返します。
生成される Gem パッケージの名前を返します。 -
IRB
:: InputMethod # file _ name -> String (30301.0) -
ファイル名を文字列で返します。
ファイル名を文字列で返します。 -
irb (26102.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>......readline ライブラリにも対応しています。
readline ライブラリがインストールされている時には
自動的にコマンドライン編集や履歴の機能が使えるようになります。
=== irb のコマンドラインオプション
irb [options] file_name opts... -
Gem
:: ConfigFile # config _ file _ name -> String (24301.0) -
設定ファイルの名前を返します。
設定ファイルの名前を返します。 -
IRB
:: STDIN _ FILE _ NAME -> "(line)" (18401.0) -
標準入力を使用する際のファイル名を文字列で返します。
標準入力を使用する際のファイル名を文字列で返します。 -
RDoc
:: CodeObject # parent _ file _ name -> String (18301.0) -
self.parent のファイル名を返します。
...self.parent のファイル名を返します。
@see RDoc::CodeObject#parent... -
Gem
:: ConfigFile # load _ file(file _ name) -> object (15407.0) -
与えられたファイル名のファイルが存在すれば YAML ファイルとしてロードします。
...与えられたファイル名のファイルが存在すれば YAML ファイルとしてロードします。
@param file_name YAML 形式で記述された設定ファイル名を指定します。... -
Gem
:: SourceIndex . load _ specification(file _ name) -> Gem :: Specification | nil (12407.0) -
与えられたファイル名から Ruby スクリプト形式の gemspec をロードして Gem::Specification のインスタンスを返します。
...形式の gemspec をロードして
Gem::Specification のインスタンスを返します。
@param file_name ファイル名を指定します。
@raise SignalException gemspec をロードしているときに発生します。
@raise SystemExit gemspec をロードしているときに発... -
Rake
:: FileList # excluded _ from _ list?(file _ name) -> bool (12307.0) -
与えられたファイル名が除外される場合は、真を返します。 そうでない場合は偽を返します。
...@param file_name ファイル名を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
IO.write("test1.rb", "test")
IO.write("test2.rb", "test")
task default: :test_rake_app
task :test_rake_app do
file_list = FileList.new("test1.rb", "test2.rb")
file_list.exclude("test1.......rb")
file_list.excluded_from_list?("test1.rb") # => true
file_list.excluded_from_list?("test2.rb") # => false
end
//}... -
File
. absolute _ path(file _ name , dir _ string=nil) -> String (9423.0) -
file_name を絶対パスに変換した文字列を返します。
...
file_name を絶対パスに変換した文字列を返します。
相対パスの場合はカレントディレクトリを基準とします。
dir_string を渡した場合はそのディレクトリを基準とします。
File.expand_path と異なり、 file_name 先頭が "~" である場....../emlist[例][ruby]{
p Dir.getwd #=> "/home/matz/work/bar"
p ENV["HOME"] #=> "/home/matz"
p File.absolute_path("..") #=> "/home/matz/work"
p File.absolute_path("..", "/tmp") #=> "/"
p File.absolute_path("~") #=> "/home/matz/work/bar/~"
p File.a......bsolute_path("~foo") #=> "/home/matz/work/bar/~foo"
//}
@see File.expand_path...