ライブラリ
- ビルトイン (365)
- date (4)
-
irb
/ cmd / help (12) - json (72)
- psych (34)
- rake (156)
- resolv (48)
- rexml (12)
-
rexml
/ document (264) -
rubygems
/ command (12) -
rubygems
/ command _ manager (12) -
rubygems
/ commands / update _ command (12) -
rubygems
/ specification (36) -
shell
/ builtin-command (6) - socket (24)
-
webrick
/ config (12)
クラス
- Data (3)
- Date (2)
- DateTime (2)
- Encoding (12)
-
Gem
:: Command (12) -
Gem
:: CommandManager (12) -
Gem
:: Commands :: UpdateCommand (12) -
Gem
:: Specification (36) -
IRB
:: ExtendCommand :: Help (12) - MatchData (26)
- Module (204)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: DocType (12) -
REXML
:: Element (72) -
REXML
:: XPath (36) -
Rake
:: FileList (12) -
Rake
:: NameSpace (36) -
Rake
:: Task (24) -
Rake
:: TaskArguments (36) - Regexp (12)
- Resolv (24)
-
Resolv
:: DNS (12) -
Resolv
:: Hosts (12) - RubyVM (12)
-
Shell
:: Cat (6) - Socket (12)
- Struct (6)
- Time (2)
モジュール
- JSON (60)
- Kernel (36)
- ObjectSpace (48)
- Psych (34)
-
REXML
:: Namespace (96) -
Rake
:: TaskManager (12) -
Socket
:: Constants (12) -
WEBrick
:: Config (12)
オブジェクト
- main (40)
キーワード
- DigestAuth (12)
-
IF
_ NAMESIZE (24) -
INSTRUCTION
_ NAMES (12) - JSON (12)
-
NEWS for Ruby 2
. 5 . 0 (8) -
NEWS for Ruby 2
. 7 . 0 (6) -
NEWS for Ruby 3
. 0 . 0 (5) - NameSpace (12)
- Namespace (12)
- UndefinedNamespaceException (12)
- [] (24)
-
add
_ namespace (24) -
arg
_ names (12) - attribute (12)
-
attribute
_ names (12) - cgi (12)
-
command
_ names (12) -
deconstruct
_ keys (17) -
delete
_ namespace (12) - each (12)
-
each
_ object (48) - execute (12)
- first (12)
-
get
_ all _ gem _ names (12) -
get
_ attribute _ ns (12) - getnames (48)
-
has
_ name? (12) - import (12)
-
in
_ namespace (12) - include (12)
- irb (12)
- load (27)
-
local
_ name (12) - match (12)
- name (12)
- name= (12)
-
named
_ captures (12) - namespace (36)
- namespaces (36)
- new (30)
-
new
_ scope (12) - parse (12)
- parse! (12)
- prefix (12)
- prefix= (12)
- private (68)
-
private
_ class _ method (24) - protected (48)
- public (68)
-
public
_ class _ method (24) -
rake
/ classic _ namespace (12) - rdoc (12)
-
read
_ only (12) - restore (12)
-
ruby2
_ keywords (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / search _ command (12) -
safe
_ load (19) -
set
_ arg _ names (12) - tasks (12)
-
test
/ unit (1) -
which
_ to _ update (12)
検索結果
先頭5件
-
MatchData
# names -> [String] (18119.0) -
名前付きキャプチャの名前を文字列配列で返します。
...前を文字列配列で返します。
self.regexp.names と同じです。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.match("hoge").names
# => ["foo", "bar", "baz"]
m = /(?<x>.)(?<y>.)?/.match("a") # => #<MatchData "a" x:"a" y:nil>
m.names # => ["x", "y"]
//}... -
Regexp
# names -> [String] (18119.0) -
正規表現に含まれる名前付きキャプチャ(named capture)の名前を 文字列の配列で返します。
...正規表現に含まれる名前付きキャプチャ(named capture)の名前を
文字列の配列で返します。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.names
# => ["foo", "bar", "baz"]
/(?<foo>.)(?<foo>.)/.names
# => ["foo"]
/(.)(.)/.names
# => []
//}... -
Encoding
# names -> String (18107.0) -
エンコーディングの名前とエイリアス名の配列を返します。
...エンコーディングの名前とエイリアス名の配列を返します。
//emlist[例][ruby]{
Encoding::UTF_8.names #=> ["UTF-8", "CP65001"]
//}... -
Rake
:: TaskArguments # names -> Array (18107.0) -
パラメータ名のリストを返します。
...パラメータ名のリストを返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
arguments = Rake::TaskArguments.new(["name1", "name2"], ["value1", "value2"])
arguments.names # => ["name1", "name2"]
end
//}... -
Kernel
# namespace(name = nil) { . . . } -> Rake :: NameSpace (6200.0) -
新しい名前空間を作成します。
...新しい名前空間を作成します。
与えられたブロックを評価する間は、その名前空間を使用します。
例:
ns = namespace "nested" do
task :run
end
task_run = ns[:run] # find :run in the given namespace.
@see Rake::TaskManager#in_namespace... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (6200.0) -
名前空間を要素から削除します。
...を削除します。
@param namespace 削除する名前空間の prefix
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new "<a xmlns:foo='bar' xmlns='twiddle'/>"
doc.root.delete_namespace
doc.to_s # => "<a xmlns:foo='bar'/>"
doc.root.delete_namespace 'foo'
doc.to_s # => "<a/>"... -
Gem
:: Command # get _ all _ gem _ names -> Array (6101.0) -
コマンドラインで与えられた Gem の名前を全て取得して返します。
コマンドラインで与えられた Gem の名前を全て取得して返します。
@raise Gem::CommandLineError コマンドライン引数から Gem の名前を取得できない場合に発生します。 -
Gem
:: CommandManager # command _ names -> Array (6101.0) -
登録されているコマンド名の配列を返します。
登録されているコマンド名の配列を返します。 -
Gem
:: Specification . attribute _ names -> Array (6101.0) -
属性名の配列を返します。
属性名の配列を返します。