1183件ヒット
[301-400件を表示]
(0.097秒)
別のキーワード
ライブラリ
- ビルトイン (835)
- json (60)
-
json
/ add / bigdecimal (12) -
json
/ add / complex (12) -
json
/ add / date (12) -
json
/ add / date _ time (12) -
json
/ add / exception (12) -
json
/ add / range (12) -
json
/ add / rational (12) -
json
/ add / regexp (12) -
json
/ add / struct (12) -
json
/ add / time (12) - optparse (144)
-
rexml
/ document (24)
クラス
-
ARGF
. class (108) - Array (24)
- BigDecimal (12)
- Class (12)
- Complex (12)
- Date (12)
- DateTime (12)
- Exception (12)
- FalseClass (24)
- Method (36)
- Module (396)
- NilClass (19)
- Object (132)
- OptionParser (144)
-
REXML
:: CData (24) - Range (12)
- Rational (12)
- Regexp (12)
- Struct (12)
- Thread (12)
-
Thread
:: Backtrace :: Location (48) - Time (12)
- TrueClass (24)
- UnboundMethod (12)
モジュール
キーワード
- === (12)
- =~ (7)
-
_ dump (12) -
absolute
_ path (12) - arity (12)
- attr (12)
-
attr
_ accessor (4) -
attr
_ reader (4) -
attr
_ writer (4) - autoload (12)
- backtrace (12)
-
base
_ label (12) -
class
_ variable _ defined? (12) -
class
_ variable _ get (12) -
class
_ variable _ set (12) - clone (12)
-
const
_ defined? (12) -
const
_ get (12) -
const
_ source _ location (12) -
define
_ method (24) -
define
_ singleton _ method (24) - dup (12)
- filename (12)
- getc (12)
- gets (36)
-
inplace
_ mode (12) - inspect (72)
-
instance
_ method (12) -
json
_ creatable? (12) -
method
_ defined? (12) - name (12)
- on (144)
- path (12)
- private (48)
-
private
_ class _ method (24) -
private
_ constant (12) -
private
_ method _ defined? (12) -
protected
_ method _ defined? (12) -
public
_ class _ method (24) -
public
_ constant (12) -
public
_ method (12) -
public
_ method _ defined? (12) - read (12)
- readchar (12)
-
remove
_ class _ variable (12) -
remove
_ const (12) -
remove
_ method (12) -
singleton
_ class (12) -
singleton
_ method (12) -
source
_ location (12) -
to
_ json (168) -
to
_ s (96) -
to
_ str (12) -
undef
_ method (12) - value (12)
検索結果
先頭5件
-
NilClass
# to _ s -> String (3215.0) -
空文字列 "" を返します。
...空文字列 "" を返します。
//emlist[例][ruby]{
nil.to_s # => ""
//}... -
TrueClass
# inspect -> String (3215.0) -
常に文字列 "true" を返します。
...常に文字列 "true" を返します。
//emlist[例][ruby]{
true.inspect # => "true"
//}... -
TrueClass
# to _ s -> String (3215.0) -
常に文字列 "true" を返します。
...常に文字列 "true" を返します。
//emlist[例][ruby]{
true.to_s # => "true"
//}... -
NilClass
# =~(other) -> nil (3025.0) -
右辺に正規表現オブジェクトを置いた正規表現マッチ obj =~ /RE/ をサポートするためのメソッドです。常に nil を返します。
...現マッチ obj =~ /RE/
をサポートするためのメソッドです。常に nil を返します。
@param other 任意のオブジェクトです。結果に影響しません。
//emlist[例][ruby]{
obj = 'regexp'
p(obj =~ /re/) #=> 0
obj = nil
p(obj =~ /re/) #=> nil
//}
@see String#=~... -
Method
# inspect -> String (271.0) -
self を読みやすい文字列として返します。
...:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.......ェクトになります。
//emlist[例][ruby]{
# オブジェクトの特異メソッド
obj = ""
class <<obj
def foo
end
end
p obj.method(:foo) # => #<Method: "".foo() foo.rb:4>
# クラスメソッド(クラスの特異メソッド)
class Foo
def Foo.foo
end
end
p Foo.method(:foo)......クラスのクラスメソッド
class Bar < Foo
end
p Bar.method(:foo) # => #<Method: Bar(Foo).foo() foo.rb:11>
# 以下は(形式1)の出力になる
module Baz
def baz
end
end
class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: String(Baz)#baz() foo.rb:23>
//}
@see O... -
Method
# to _ s -> String (271.0) -
self を読みやすい文字列として返します。
...:2」は Method#source_location を表します。
source_location が nil の場合には付きません。
//emlist[例][ruby]{
module Foo
def foo
"foo"
end
end
class Bar
include Foo
def bar(a, b)
end
end
p Bar.new.method(:foo) # => #<Method: Bar(Foo)#foo() test.rb:2>
p Bar.......ェクトになります。
//emlist[例][ruby]{
# オブジェクトの特異メソッド
obj = ""
class <<obj
def foo
end
end
p obj.method(:foo) # => #<Method: "".foo() foo.rb:4>
# クラスメソッド(クラスの特異メソッド)
class Foo
def Foo.foo
end
end
p Foo.method(:foo)......クラスのクラスメソッド
class Bar < Foo
end
p Bar.method(:foo) # => #<Method: Bar(Foo).foo() foo.rb:11>
# 以下は(形式1)の出力になる
module Baz
def baz
end
end
class <<obj
include Baz
end
p obj.method(:baz) # => #<Method: String(Baz)#baz() foo.rb:23>
//}
@see O... -
Object
# to _ str -> String (265.0) -
オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。 デフォルトでは定義されていません。
...オブジェクトの String への暗黙の変換が必要なときに内部で呼ばれます。
デフォルトでは定義されていません。
説明のためここに記載してありますが、
このメソッドは実際には Object クラスには定義されていません。
必......面で代置可能であるような、
* 文字列そのものとみなせるようなもの
という厳しいものになっています。
//emlist[][ruby]{
class Foo
def to_str
'Edition'
end
end
it = Foo.new
p('Second' + it) #=> "SecondEdition"
//}
@see Object#to_s,Kernel.#String... -
OptionParser
# on(long , klass = String , desc = "") {|v| . . . } -> self (263.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...、ブロックに渡されます。
opts.on("-w", "--width N", Integer){|w|
p w.class #=> Integer
}
# ruby command --width=32
opts.on("-o", "--overwrite VALUE", TrueClass){|boolean| ...}
# ruby command --overwrite yes
@param short ショートオプションを表す文字列を指......場合に発生します。
=== デフォルトで利用可能な引数クラス
: Object
オプションの引数は変換されません。
: String
オプションの引数は変換されません。ただし、空文字列を指定すると
OptionParser::InvalidArgument が発生します......ueClass
true か false に変換されます。"yes" や "no"、"true" や "false"、"+"
や "-" を指定できます。オプションの引数を省略した場合は true になります。
また、"no-" をオプションの先頭に付けた場合は値が反転します。
: FalseClass... -
OptionParser
# on(short , klass = String , desc = "") {|v| . . . } -> self (263.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...、ブロックに渡されます。
opts.on("-w", "--width N", Integer){|w|
p w.class #=> Integer
}
# ruby command --width=32
opts.on("-o", "--overwrite VALUE", TrueClass){|boolean| ...}
# ruby command --overwrite yes
@param short ショートオプションを表す文字列を指......場合に発生します。
=== デフォルトで利用可能な引数クラス
: Object
オプションの引数は変換されません。
: String
オプションの引数は変換されません。ただし、空文字列を指定すると
OptionParser::InvalidArgument が発生します......ueClass
true か false に変換されます。"yes" や "no"、"true" や "false"、"+"
や "-" を指定できます。オプションの引数を省略した場合は true になります。
また、"no-" をオプションの先頭に付けた場合は値が反転します。
: FalseClass... -
OptionParser
# on(short , long , klass = String , desc = "") {|v| . . . } -> self (263.0) -
オプションを取り扱うためのブロックを自身に登録します。 ブロックはコマンドラインのパース時に、オプションが指定されていれば呼ばれます。
...、ブロックに渡されます。
opts.on("-w", "--width N", Integer){|w|
p w.class #=> Integer
}
# ruby command --width=32
opts.on("-o", "--overwrite VALUE", TrueClass){|boolean| ...}
# ruby command --overwrite yes
@param short ショートオプションを表す文字列を指......場合に発生します。
=== デフォルトで利用可能な引数クラス
: Object
オプションの引数は変換されません。
: String
オプションの引数は変換されません。ただし、空文字列を指定すると
OptionParser::InvalidArgument が発生します......ueClass
true か false に変換されます。"yes" や "no"、"true" や "false"、"+"
や "-" を指定できます。オプションの引数を省略した場合は true になります。
また、"no-" をオプションの先頭に付けた場合は値が反転します。
: FalseClass...