別のキーワード
ライブラリ
- ビルトイン (1471)
- csv (108)
- date (4)
- erb (36)
- etc (12)
-
irb
/ cmd / help (12) -
irb
/ cmd / load (36) - json (144)
-
json
/ add / struct (12) - logger (228)
-
net
/ http (24) - optparse (192)
- pathname (368)
- rake (156)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (24) - resolv (12)
-
rexml
/ document (276) - ripper (12)
-
ripper
/ filter (12) - rubygems (12)
-
rubygems
/ installer (12) - socket (12)
- win32ole (36)
クラス
-
ARGF
. class (24) - Addrinfo (12)
- BasicObject (96)
- Binding (12)
- CSV (72)
-
CSV
:: Row (12) -
CSV
:: Table (24) - Data (15)
- Date (2)
- DateTime (2)
- ERB (36)
- Encoding (48)
-
Gem
:: Installer (12) - IO (12)
-
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) -
JSON
:: Parser (12) -
JSON
:: State (72) - Logger (228)
- MatchData (95)
- Method (12)
- Module (556)
-
Net
:: HTTP (12) - Object (120)
- OptionParser (192)
- Pathname (368)
-
REXML
:: Attribute (24) -
REXML
:: Attributes (96) -
REXML
:: DocType (48) -
REXML
:: Element (96) -
REXML
:: Elements (12) -
Rake
:: Application (24) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (24) -
Rake
:: InvocationChain (24) -
Rake
:: MakefileLoader (12) -
Rake
:: PackageTask (24) -
Rake
:: TaskArguments (12) - Regexp (24)
-
Resolv
:: DNS :: Name (12) - Ripper (12)
-
Ripper
:: Filter (12) - String (264)
- Struct (72)
- Symbol (5)
- Thread (30)
- Time (2)
- TracePoint (24)
- UnboundMethod (12)
- WIN32OLE (24)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (72)
-
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (48)
-
Net
:: HTTPHeader (12) -
Rake
:: TaskManager (60)
キーワード
- % (12)
- <=> (12)
- == (12)
- JSON (12)
- [] (168)
- []= (96)
-
_ _ send _ _ (24) - add (24)
-
add
_ attributes (12) -
add
_ namespace (24) - append (12)
- ascend (12)
- atime (12)
- attr (24)
-
attr
_ accessor (8) -
attr
_ reader (8) -
attr
_ writer (12) - attribute (12)
-
attributes
_ of (12) - autoload (12)
- autoload? (12)
- basename (12)
- binread (12)
- bytebegin (2)
- byteend (2)
- byteoffset (6)
-
callee
_ id (12) - canonname (12)
- children (12)
- chown (12)
-
class
_ eval (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - cleanpath (12)
-
col
_ sep (12) -
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ source _ location (12) - convert (24)
- ctime (12)
- debug (24)
-
deconstruct
_ keys (9) -
def
_ method (12) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delete (12)
-
delete
_ all (12) -
delete
_ if (24) - descend (12)
- dirname (12)
- each (24)
-
each
_ attribute (12) -
each
_ capitalized _ name (12) -
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ entry (12) -
each
_ filename (12) -
each
_ line (24) - egrep (12)
- entity (12)
- entries (12)
- error (24)
- eval (12)
-
excluded
_ from _ list? (12) - execute (48)
-
external
_ id (12) - fatal (24)
- fetch (8)
- filename (48)
- filename= (12)
-
formatted
_ program _ filename (12) - formatter (12)
- gem (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) - glob (8)
- hash (15)
-
header
_ convert (24) -
in
_ namespace (12) - include? (12)
- info (24)
- init (12)
- initialize (12)
- inspect (27)
-
instance
_ eval (12) -
instance
_ method (12) - intern (24)
- j (12)
- jj (12)
- join (12)
- length (12)
- load (36)
- log (24)
- lookup (12)
- max (24)
- member? (12)
-
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ undefined (12) - min (48)
-
module
_ eval (12) -
module
_ function (36) - mountpoint? (12)
- name= (10)
-
named
_ captures (13) - names (36)
- namespace (24)
- namespaces (24)
-
object
_ nl (12) -
object
_ nl= (12) - offset (24)
- on (144)
-
original
_ name (24) -
package
_ dir= (12) - path (12)
- pathconf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) - progname (12)
- progname= (12)
-
program
_ name (12) -
program
_ name= (12) -
protected
_ method _ defined? (12) - public (48)
-
public
_ class _ method (24) -
public
_ constant (12) -
public
_ instance _ method (12) -
public
_ method (12) -
public
_ method _ defined? (12) -
public
_ send (24) - realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ class _ variable (12) -
remove
_ instance _ variable (12) - replicate (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) -
ruby2
_ keywords (12) -
send
_ request (12) - setproperty (24)
-
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) - size (12)
- slice (72)
- source (12)
- space (12)
- space= (12)
-
space
_ before (12) -
space
_ before= (12) - split (12)
-
subdomain
_ of? (12) -
synthesize
_ file _ task (12) -
to
_ json (36) -
to
_ s (51) -
to
_ string (12) -
to
_ sym (12) - unknown (24)
- unlink (12)
- ver (12)
- warn (24)
- with (3)
-
with
_ defaults (12)
検索結果
先頭5件
-
Encoding
# name -> String (21220.0) -
エンコーディングの名前を返します。
...エンコーディングの名前を返します。
//emlist[例][ruby]{
Encoding::UTF_8.name #=> "UTF-8"
//}... -
Rake
:: Application # name -> String (21220.0) -
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
...アプリケーションの名前を返します。通常は 'rake' という名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}... -
Module
# name -> String | nil (18256.0) -
モジュールやクラスの名前を文字列で返します。
...しては「CGI::Session」「Net::HTTP」が挙げられます。
@return 名前のないモジュール / クラスに対しては、name は nil を、それ以外はオブジェクト ID の文字列を返します。
//emlist[例][ruby]{
module A
module B
end
p B.name #=> "A::B"
cl......ass C
end
end
p A.name #=> "A"
p A::B.name #=> "A::B"
p A::C.name #=> "A::C"
# 名前のないモジュール / クラス
p Module.new.name #=> nil
p Class.new.name #=> nil
p Module.new.to_s #=> "#<Module:0x00007f90b09112c8>"
p Class.new.to_s #=> "#<Class:0x00007fa5c40b41b0>"
//}... -
Symbol
# name -> String (18226.0) -
シンボルに対応する文字列を返します。
...シンボルに対応する文字列を返します。
Symbol#to_sと違って freeze された文字列を返します。
//emlist[][ruby]{
p :fred.name # => "fred"
p :fred.name.frozen? # => true
p :fred.to_s # => "fred"
p :fred.to_s.frozen? # => false
//}
@see Symbol#to_s... -
REXML
:: DocType # name -> String (18220.0) -
ルート要素名を返します。
...ルート要素名を返します。
//emlist[][ruby]{
document = REXML::Document.new(<<EOS)
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
EOS
doctype = document.doctype
p doctype.name # => "html"
//}... -
Rake
:: PackageTask # name -> String (18220.0) -
バージョン情報を含まないパッケージの名前を返します。
...バージョン情報を含まないパッケージの名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.name # => "sample"
end
//}... -
Pathname
# dirname -> Pathname (15313.0) -
Pathname.new(File.dirname(self.to_s)) と同じです。
...Pathname.new(File.dirname(self.to_s)) と同じです。
//emlist[例][ruby]{
require "pathname"
Pathname('/usr/bin/shutdown').dirname # => #<Pathname:/usr/bin>
//}
@see File.dirname... -
Pathname
# each _ filename {|v| . . . } -> nil (15313.0) -
self のパス名要素毎にブロックを実行します。
...self のパス名要素毎にブロックを実行します。
//emlist[例][ruby]{
require 'pathname'
Pathname.new("/foo/../bar").each_filename {|v| p v}
# => "foo"
# ".."
# "bar"
//}... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (12464.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.
...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 fi......al 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 thr......ethods.
This should only be used for methods that delegate 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...