2951件ヒット
[1-100件を表示]
(0.098秒)
別のキーワード
ライブラリ
- ビルトイン (1492)
- csv (132)
- date (4)
- erb (36)
- etc (12)
-
irb
/ cmd / help (12) -
irb
/ cmd / load (36) - json (72)
-
json
/ add / struct (12) - logger (192)
-
net
/ http (12) - optparse (168)
- pathname (399)
- rake (144)
-
rexml
/ document (156) - rubygems (12)
-
rubygems
/ installer (12) - un (12)
- win32ole (36)
クラス
- BasicObject (96)
- Binding (12)
- CSV (84)
-
CSV
:: Row (24) -
CSV
:: Table (24) - Data (15)
- Date (2)
- DateTime (2)
- ERB (36)
-
Gem
:: Installer (12) - IO (12)
-
IRB
:: ExtendCommand :: Help (12) -
IRB
:: ExtendCommand :: Load (12) -
IRB
:: ExtendCommand :: Require (12) -
IRB
:: ExtendCommand :: Source (12) -
JSON
:: Parser (12) - Logger (192)
- MatchData (96)
- Method (12)
- Module (636)
-
Net
:: HTTP (12) - Object (156)
- OptionParser (168)
- Pathname (399)
-
REXML
:: Attribute (12) -
REXML
:: Attributes (48) -
REXML
:: DocType (12) -
REXML
:: Element (72) -
REXML
:: Elements (12) -
Rake
:: FileList (12) -
Rake
:: InvocationChain (24) -
Rake
:: NameSpace (12) -
Rake
:: TaskArguments (36) - String (240)
- Struct (60)
- Symbol (5)
- Thread (42)
- Time (2)
- TracePoint (24)
- UnboundMethod (12)
- WIN32OLE (24)
-
WIN32OLE
_ TYPE (12)
モジュール
- Enumerable (96)
-
JSON
:: Generator :: GeneratorMethods :: Hash (12) -
JSON
:: Generator :: GeneratorMethods :: Object (12) - Kernel (60)
-
Rake
:: TaskManager (60)
キーワード
- % (12)
- + (12)
-
/ (11) - << (12)
- <=> (12)
- == (39)
- === (12)
- JSON (12)
- [] (192)
- []= (84)
-
_ _ send _ _ (24) - add (24)
-
add
_ attributes (12) -
add
_ namespace (12) -
add
_ row (12) - append (12)
- atime (12)
- attr (36)
-
attr
_ accessor (12) -
attr
_ reader (12) -
attr
_ writer (12) - attribute (12)
- autoload (12)
- autoload? (12)
- basename (12)
- binread (12)
- bytebegin (2)
- byteend (2)
- byteoffset (6)
-
callee
_ id (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
_ 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
_ all (12) -
delete
_ if (24) -
delete
_ namespace (12) -
deprecate
_ constant (12) - dirname (12)
-
each
_ child (24) -
each
_ element _ with _ attribute (12) -
each
_ element _ with _ text (12) -
each
_ entry (15) -
each
_ line (24) - empty? (9)
- entity (12)
- entries (12)
- eql? (27)
- error (24)
- eval (12)
-
excluded
_ from _ list? (12) - execute (48)
- fatal (24)
- fetch (8)
- fnmatch (12)
-
formatted
_ program _ filename (12) - gem (12)
-
get
_ attribute (12) -
get
_ attribute _ ns (12) - glob (16)
- hash (3)
- header? (12)
-
in
_ namespace (12) - include? (12)
- info (24)
- initialize (12)
- inspect (12)
-
instance
_ eval (12) -
instance
_ method (12) - intern (12)
- j (12)
- jj (12)
- join (12)
- key? (12)
- ln (12)
- load (12)
- 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) - name= (10)
-
named
_ captures (12) - namespace (12)
-
new
_ scope (12) - offset (24)
- on (144)
-
original
_ name (24) - parse (12)
- pathconf (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (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
_ path _ from (12) -
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ instance _ variable (12) -
remove
_ method (12) -
respond
_ to? (12) -
respond
_ to _ missing? (12) - send (24)
-
send
_ request (12) - setproperty (24)
-
singleton
_ method (12) -
singleton
_ method _ added (12) -
singleton
_ method _ removed (12) -
singleton
_ method _ undefined (12) - slice (72)
- split (12)
- sub (24)
-
sub
_ ext (12) -
synthesize
_ file _ task (12) -
to
_ a (6) -
to
_ json (36) -
to
_ s (12) -
undef
_ method (12) - unknown (24)
- values (6)
- warn (24)
- with (3)
-
with
_ defaults (12)
検索結果
先頭5件
-
Symbol
# name -> String (18232.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... -
Module
# name -> String | nil (15262.0) -
モジュールやクラスの名前を文字列で返します。
...ます。
@return 名前のないモジュール / クラスに対しては、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>"
//}... -
Pathname
# basename(suffix = "") -> Pathname (9481.0) -
Pathname.new(File.basename(self.to_s, suffix)) と同じです。
...Pathname.new(File.basename(self.to_s, suffix)) と同じです。
@param suffix サフィックスを文字列で与えます。'.*' という文字列を与えた場合、'*' はワイルドカードとして働き
'.' を含まない任意の文字列にマッチします。
//emli......][ruby]{
require "pathname"
Pathname("ruby/ruby.c").basename #=> #<Pathname:"ruby.c">
Pathname("ruby/ruby.c").basename(".c") #=> #<Pathname:"ruby">
Pathname("ruby/ruby.c").basename(".*") #=> #<Pathname:"ruby">
Pathname("ruby/ruby.exe").basename(".*") #=> #<Pathname:"ruby">
Pathname(......"ruby/y.tab.c").basename(".*") #=> #<Pathname:"y.tab">
//}
@see File.basename... -
Pathname
# dirname -> Pathname (9319.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... -
Rake
:: TaskManager # in _ namespace(name) {|name _ space| . . . } -> Array (6427.0) -
与えられた名前の名前空間でブロックを評価します。
...ロックを評価します。
@param name 名前を指定します。
//emlist[][ruby]{
# Rakefile での記載例とする
task default: :test_rake_app
namespace :sample do
def hoge
puts "hoge"
end
end
task :test_rake_app do
task.application.in_namespace("sample") do
hoge # => "... -
Thread
# name=(name) -> String (6367.0) -
self の名前を name に設定します。
...self の名前を name に設定します。
プラットフォームによっては pthread やカーネルにも設定を行う場合があります。
@raise ArgumentError 引数に ASCII 互換ではないエンコーディングのものを
指定した場合に発生し......ます。
//emlist[例][ruby]{
a = Thread.new{}
a.name = 'named'
a.name # => "named"
a.inspect # => "#<Thread:0x00007f85ac8721f0@named@(irb):1 dead>"
//}
@see Thread#name... -
Gem
:: Installer # formatted _ program _ filename(filename) -> String (6339.0) -
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
...
Ruby のコマンドと同じプレフィックスとサフィックスを付けたファイル名を返します。
@param filename 実行ファイルのファイル名を指定します。... -
MatchData
# named _ captures(symbolize _ names: false) -> Hash (6325.0) -
名前付きキャプチャをHashで返します。
...。
@param symbolize_names 真を指定するとハッシュのキーを文字列ではなくシンボルにします。デフォルトは偽です。
//emlist[例][ruby]{
m = /(?<a>.)(?<b>.)/.match("01")
m.named_captures # => {"a" => "0", "b" => "1"}
m = /(?<a>.)(?<b>.)?/.match("0")
m.named_capt......", "b" => nil}
m = /(?<a>.)(?<a>.)/.match("01")
m.named_captures # => {"a" => "1"}
m = /(?<a>x)|(?<a>y)/.match("x")
m.named_captures # => {"a" => "x"}
m = /(?<a>.)(?<a>.)/.match("01")
m.named_captures(symbolize_names: true) #=> {:a => "1"}
//}
@see MatchData#captures, MatchData#deconstruct_keys... -
REXML
:: Element # delete _ namespace(namespace = "xmlns") -> self (6319.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 # => "... -
Method
# original _ name -> Symbol (6232.0) -
オリジナルのメソッド名を返します。
...オリジナルのメソッド名を返します。
//emlist[例][ruby]{
class C
def foo; end
alias bar foo
end
C.new.method(:bar).original_name # => :foo
//}
@see UnboundMethod#original_name...