別のキーワード
ライブラリ
- ビルトイン (277)
- date (4)
-
irb
/ cmd / help (12) - json (72)
- psych (34)
- rake (84)
-
rexml
/ document (144)
クラス
- Data (3)
- Date (2)
- DateTime (2)
- Encoding (12)
-
IRB
:: ExtendCommand :: Help (12) - MatchData (26)
- Module (156)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (24) -
REXML
:: Element (72) -
REXML
:: XPath (36) -
Rake
:: NameSpace (36) -
Rake
:: TaskArguments (36) - Regexp (12)
- RubyVM (12)
- Struct (6)
- Time (2)
モジュール
- JSON (60)
- Kernel (12)
- ObjectSpace (48)
- Psych (34)
-
Rake
:: TaskManager (12)
キーワード
-
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) - [] (24)
-
add
_ namespace (24) - attribute (12)
- cgi (12)
-
deconstruct
_ keys (17) -
delete
_ namespace (12) - each (12)
-
each
_ object (48) - execute (12)
- first (12)
-
get
_ attribute _ ns (12) -
in
_ namespace (12) - irb (12)
- load (27)
- match (12)
-
named
_ captures (12) - namespace (24)
- namespaces (24)
- new (24)
-
new
_ scope (12) - parse (12)
- parse! (12)
- private (48)
-
private
_ class _ method (24) - public (48)
-
public
_ class _ method (24) - rdoc (12)
- restore (12)
-
ruby2
_ keywords (12) -
rubygems
/ commands / install _ command (12) -
rubygems
/ commands / search _ command (12) -
safe
_ load (19) - tasks (12)
-
test
/ unit (1)
検索結果
先頭5件
-
rubygems
/ commands / install _ command (26036.0) -
Gem パッケージをローカルリポジトリにインストールするためのライブラリです。
...Gem パッケージをインストールします
--[no-]format-executable Make installed executable names match ruby.
If ruby is ruby18, foo_exec will be
foo_exec18
Local/Remote Options:
-l, --loca......た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
GEMNAME インストールする Gem パッケージ......名を指定します
Summary:
Gem パッケージをローカルにインストールします
Defaults:
--both --version '>= 0' --rdoc --ri --no-force
--no-test --install-dir /usr/lib/ruby/gems/1.8... -
rubygems
/ commands / search _ command (26012.0) -
指定された文字列を含む Gem パッケージを全て表示するためのライブラリです。
...gem to search
-d, --[no-]details Display detailed information of gem(s)
--[no-]versions Display only gem names
-a, --all Display all gem versions
Local/Remote Options:
-l, --local 操作をロー......た設定ファイルを使用します
--backtrace バックトレースを表示します
--debug Ruby 自体のデバッグオプションを有効にします
Arguments:
STRING 検索したい Gem パッケージ名の一... -
MatchData
# names -> [String] (18125.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] (18125.0) -
正規表現に含まれる名前付きキャプチャ(named capture)の名前を 文字列の配列で返します。
...正規表現に含まれる名前付きキャプチャ(named capture)の名前を
文字列の配列で返します。
//emlist[例][ruby]{
/(?<foo>.)(?<bar>.)(?<baz>.)/.names
# => ["foo", "bar", "baz"]
/(?<foo>.)(?<foo>.)/.names
# => ["foo"]
/(.)(.)/.names
# => []
//}... -
Encoding
# names -> String (18113.0) -
エンコーディングの名前とエイリアス名の配列を返します。
...エンコーディングの名前とエイリアス名の配列を返します。
//emlist[例][ruby]{
Encoding::UTF_8.names #=> ["UTF-8", "CP65001"]
//}... -
Rake
:: TaskArguments # names -> Array (18113.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
//}... -
RubyVM
:: INSTRUCTION _ NAMES -> [String] (9101.0) -
RubyVM の命令シーケンスの名前の一覧を返します。
...
RubyVM の命令シーケンスの名前の一覧を返します。
@see RubyVM::InstructionSequence... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (6206.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/>"... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (6147.0) -
For the given method names, marks the method as passing keywords through a normal argument splat. This should only be called on methods that accept an argument splat (`*args`) but not explicit keywords or a keyword splat. It marks the method such that if the method is called with keyword arguments, the final hash argument is marked with a special flag such that if it is the final element of a normal argument splat to another method call, and that method call does not include explicit keywords or a keyword splat, the final element is interpreted as keywords. In other words, keywords will be passed through the method to other methods.
...For the given method names, marks the method as passing keywords through
a normal argument splat. This should only be called on methods that
accept an argument splat (`*args`) but not explicit keywords or a
keyword splat. It marks the method such that if the method is called
with keyword argument......ate keywords to another
method, and only for backwards compatibility with Ruby versions before
2.7.
This method will probably be removed at some point, as it exists only
for backwards compatibility. As it does not exist in Ruby versions
before 2.7, check that the module responds to this method befo......aware that if this method is removed, the behavior of the
method will change so that it does not pass through keywords.
//emlist[例][ruby]{
module Mod
def foo(meth, *args, &block)
send(:"do_#{meth}", *args, &block)
end
ruby2_keywords(:foo) if respond_to?(:ruby2_keywords, true)
end
//}...