別のキーワード
ライブラリ
- ビルトイン (1810)
- csv (204)
- date (4)
- erb (60)
- etc (12)
-
irb
/ cmd / help (12) -
irb
/ cmd / load (36) - json (156)
-
json
/ add / struct (12) - logger (240)
-
net
/ http (72) - optparse (192)
- ostruct (14)
- pathname (555)
- rake (228)
-
rake
/ loaders / makefile (12) -
rake
/ packagetask (36) - resolv (12)
-
rexml
/ document (312) - ripper (12)
-
ripper
/ filter (12) - rubygems (12)
-
rubygems
/ installer (12) - socket (12)
- un (19)
- win32ole (36)
クラス
-
ARGF
. class (24) - Addrinfo (12)
- BasicObject (96)
- Binding (12)
- CSV (132)
-
CSV
:: Row (24) -
CSV
:: Table (48) - Data (27)
- Date (2)
- DateTime (2)
- ERB (60)
- 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 (24) -
JSON
:: State (72) - Logger (240)
- MatchData (104)
- Method (24)
- Module (663)
-
Net
:: HTTP (12) - Object (156)
- OpenStruct (14)
- OptionParser (192)
- Pathname (555)
-
REXML
:: Attribute (24) -
REXML
:: Attributes (96) -
REXML
:: DocType (48) -
REXML
:: Element (132) -
REXML
:: Elements (12) -
Rake
:: Application (24) -
Rake
:: DefaultLoader (12) -
Rake
:: FileList (24) -
Rake
:: InvocationChain (24) -
Rake
:: MakefileLoader (12) -
Rake
:: NameSpace (24) -
Rake
:: PackageTask (36) -
Rake
:: TaskArguments (60) - Regexp (24)
-
Resolv
:: DNS :: Name (12) - Ripper (12)
-
Ripper
:: Filter (12) - String (264)
- Struct (187)
- Symbol (5)
- Thread (42)
- Time (2)
- TracePoint (24)
- UnboundMethod (24)
- WIN32OLE (24)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (96)
-
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (67)
-
Net
:: HTTPHeader (60) -
Rake
:: TaskManager (60)
キーワード
- % (12)
- + (12)
-
/ (11) - << (12)
- <=> (12)
- == (39)
- === (12)
- JSON (12)
- [] (192)
- []= (108)
-
_ _ send _ _ (24) - absolute? (12)
- add (24)
-
add
_ attributes (12) -
add
_ namespace (24) -
add
_ row (12) - append (12)
- ascend (24)
- atime (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
-
attributes
_ of (12) - autoload (12)
- autoload? (12)
- basename (12)
- binread (12)
- 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
_ added (3) -
const
_ defined? (12) -
const
_ get (12) -
const
_ missing (12) -
const
_ set (12) -
const
_ source _ location (12) - convert (36)
- ctime (12)
- debug (24)
- deconstruct (6)
-
deconstruct
_ keys (17) -
def
_ class (12) -
def
_ method (12) -
def
_ module (12) -
default
_ event _ sources (12) -
define
_ method (24) -
define
_ singleton _ method (24) - delete (12)
-
delete
_ all (12) -
delete
_ if (24) -
delete
_ namespace (12) -
deprecate
_ constant (12) - descend (24)
- dirname (12)
- each (84)
-
each
_ attribute (12) -
each
_ capitalized _ name (12) -
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ entry (15) -
each
_ filename (12) -
each
_ header (12) -
each
_ key (12) -
each
_ line (24) -
each
_ name (12) - egrep (12)
- empty? (9)
- entity (12)
- entries (12)
- eql? (27)
- error (24)
- eval (12)
-
excluded
_ from _ list? (12) - execute (48)
-
external
_ id (12) - fatal (24)
- fetch (8)
- filename (48)
- filename= (12)
- fnmatch (12)
-
formatted
_ program _ filename (12) - formatter (12)
- formatter= (12)
- gem (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) - glob (16)
- hash (15)
- header? (12)
-
header
_ convert (36) - httpd (7)
-
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)
- key? (12)
- length (12)
- ln (12)
- load (36)
- log (24)
- lookup (12)
- max (48)
- member? (12)
- method (12)
-
method
_ added (12) -
method
_ defined? (12) -
method
_ id (12) -
method
_ missing (12) -
method
_ removed (12) -
method
_ undefined (12) - min (48)
-
module
_ eval (12) -
module
_ function (36) - mountpoint? (12)
- name= (22)
-
named
_ captures (24) - names (48)
- namespace (24)
- namespaces (24)
-
new
_ scope (12) -
object
_ nl (12) -
object
_ nl= (12) - offset (24)
- on (144)
-
original
_ name (24) -
package
_ dir= (12) - parent (12)
- parse (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) - puts (12)
- realdirpath (12)
- realpath (24)
- relative? (12)
-
relative
_ path _ from (12) -
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) - replicate (12)
-
respond
_ to? (12) -
respond
_ to _ missing? (12) - root (12)
- root? (12)
-
root
_ node (12) -
ruby2
_ keywords (12) - send (24)
-
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)
- sub (24)
-
sub
_ ext (12) -
subdomain
_ of? (12) -
synthesize
_ file _ task (12) - tasks (12)
-
to
_ a (12) -
to
_ h (39) -
to
_ hash (12) -
to
_ json (36) -
to
_ s (51) -
to
_ string (12) -
to
_ sym (12) -
undef
_ method (12) - unknown (24)
- unlink (12)
- values (12)
- ver (12)
- warn (24)
- with (3)
-
with
_ defaults (12)
検索結果
先頭5件
-
Symbol
# name -> String (18126.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... -
Encoding
# name -> String (18120.0) -
エンコーディングの名前を返します。
...エンコーディングの名前を返します。
//emlist[例][ruby]{
Encoding::UTF_8.name #=> "UTF-8"
//}... -
Method
# name -> Symbol (18120.0) -
このメソッドの名前を返します。
...このメソッドの名前を返します。
//emlist[例][ruby]{
class Foo
def foo(arg)
"foo called with arg #{arg}"
end
end
m = Foo.new.method(:foo) # => #<Method: Foo#foo>
m.name # => :foo
//}... -
REXML
:: DocType # name -> String (18120.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
:: Application # name -> String (18120.0) -
アプリケーションの名前を返します。通常は 'rake' という名前を返します。
...アプリケーションの名前を返します。通常は 'rake' という名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
task :test_rake_app do
Rake.application.name # => "rake"
end
//}... -
Rake
:: PackageTask # name -> String (18120.0) -
バージョン情報を含まないパッケージの名前を返します。
...バージョン情報を含まないパッケージの名前を返します。
//emlist[][ruby]{
# Rakefile での記載例とする
require 'rake/packagetask'
Rake::PackageTask.new("sample", "1.0.0") do |package_task|
package_task.name # => "sample"
end
//}... -
UnboundMethod
# name -> Symbol (18120.0) -
このメソッドの名前を返します。
...このメソッドの名前を返します。
//emlist[例][ruby]{
a = String.instance_method(:size)
a.name # => :size
//}... -
Module
# name -> String | nil (15156.0) -
モジュールやクラスの名前を文字列で返します。
...ル / クラスに対しては、name は nil を、それ以外はオブジェクト ID の文字列を返します。
//emlist[例][ruby]{
module A
module B
end
p B.name #=> "A::B"
class 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>"
//}... -
Module
# ruby2 _ keywords(method _ name , . . . ) -> nil (12364.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
//}...