種類
ライブラリ
- ビルトイン (693)
-
cgi
/ core (33) -
cgi
/ html (88) -
irb
/ cmd / help (11) -
irb
/ context (11) -
irb
/ extend-command (11) -
irb
/ input-method (66) - json (187)
-
minitest
/ unit (1) -
net
/ http (22) - rake (11)
- rdoc (11)
-
shell
/ command-processor (6) -
webrick
/ httprequest (11) -
webrick
/ httpresponse (11) - win32ole (132)
クラス
- CGI (22)
- Exception (11)
-
IRB
:: Context (11) -
IRB
:: ExtendCommand :: Help (11) -
IRB
:: FileInputMethod (11) -
IRB
:: InputMethod (11) -
IRB
:: ReadlineInputMethod (22) -
IRB
:: StdioInputMethod (22) -
JSON
:: State (11) - Method (33)
-
MiniTest
:: Unit (1) - Module (250)
- NameError (11)
-
Net
:: HTTPGenericRequest (11) - Object (55)
- Proc (11)
- Refinement (3)
- Regexp (22)
-
RubyVM
:: InstructionSequence (66) -
Shell
:: CommandProcessor (6) - String (55)
- TracePoint (11)
- UnboundMethod (88)
-
WEBrick
:: HTTPRequest (11) -
WEBrick
:: HTTPResponse (11) -
WIN32OLE
_ METHOD (88) -
WIN32OLE
_ PARAM (44)
モジュール
-
CGI
:: HtmlExtension (88) -
CGI
:: QueryExtension (11) -
IRB
:: ExtendCommandBundle (11) -
JSON
:: Generator :: GeneratorMethods :: Array (11) -
JSON
:: Generator :: GeneratorMethods :: FalseClass (11) -
JSON
:: Generator :: GeneratorMethods :: Float (11) -
JSON
:: Generator :: GeneratorMethods :: Hash (11) -
JSON
:: Generator :: GeneratorMethods :: Integer (11) -
JSON
:: Generator :: GeneratorMethods :: NilClass (11) -
JSON
:: Generator :: GeneratorMethods :: Object (11) -
JSON
:: Generator :: GeneratorMethods :: String (33) -
JSON
:: Generator :: GeneratorMethods :: String :: Extend (11) -
JSON
:: Generator :: GeneratorMethods :: TrueClass (11) - Kernel (33)
- Marshal (22)
-
Net
:: HTTPHeader (11) - RDoc (11)
オブジェクト
- main (22)
キーワード
-
1
. 6 . 8から1 . 8 . 0への変更点(まとめ) (11) - == (11)
- Extend (22)
-
METHOD
_ MODIFIERS (11) -
NEWS for Ruby 2
. 0 . 0 (11) -
NEWS for Ruby 2
. 1 . 0 (11) -
NEWS for Ruby 2
. 2 . 0 (10) -
NEWS for Ruby 2
. 3 . 0 (9) -
NEWS for Ruby 2
. 5 . 0 (7) -
NEWS for Ruby 2
. 6 . 0 (6) -
NEWS for Ruby 2
. 7 . 0 (5) -
NEWS for Ruby 3
. 0 . 0 (4) -
NEWS for Ruby 3
. 1 . 0 (3) - NoDelegateMethods (6)
- NoMethodError (11)
- Rubyで使われる記号の意味(正規表現の複雑な記号は除く) (11)
- Ruby用語集 (11)
-
absolute
_ path (11) -
alias
_ method (11) - arity (11)
- backtrace (11)
-
base
_ label (11) - caller (33)
- cgi (11)
- clone (11)
-
define
_ method (44) -
define
_ singleton _ method (22) -
did
_ you _ mean (11) - disasm (11)
- disassemble (11)
- dump (22)
- encode (33)
- eql? (11)
-
event
_ interface (11) - execute (11)
-
file
_ name (11) - form (44)
- generate (11)
- gets (33)
- header (11)
- helpfile (11)
- helpstring (11)
-
import
_ methods (3) - inspect (22)
-
instance
_ method (11) -
invoke
_ kind (11) - irb (11)
-
irb
_ original _ method _ name (11) -
json
_ create (11) - label (11)
-
last
_ match (22) - line (22)
-
method
_ defined? (11) -
module
_ function (19) -
multipart
_ form (44) - name (33)
- new (22)
-
ole
_ type (11) -
ole
_ type _ detail (11) - out (11)
- path (11)
- private (23)
-
private
_ class _ method (15) -
private
_ method _ defined? (11) - protected (23)
-
protected
_ method _ defined? (11) - public (23)
-
public
_ class _ method (15) -
public
_ instance _ method (11) -
public
_ method (11) -
public
_ method _ defined? (11) - puke (1)
-
rake
_ extension (11) -
rb
_ check _ convert _ type (11) - rdoc (11)
-
remove
_ method (11) -
request
_ method (33) -
return
_ type (11) -
return
_ type _ detail (11) -
ruby 1
. 6 feature (11) -
ruby 1
. 8 . 2 feature (11) -
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 8 . 4 feature (11) -
ruby 1
. 9 feature (11) -
singleton
_ method (11) -
source
_ location (33) -
to
_ json (99) -
to
_ json _ raw (11) -
to
_ json _ raw _ object (11) -
to
_ s (66) -
to
_ str (11) -
undef
_ method (11) -
webrick
/ cgi (11) - クラス/メソッドの定義 (11)
- リテラル (11)
検索結果
先頭5件
-
String
# encode(**options) -> String (21127.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...す。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエンコーディングならば U+FFFD、それ以外では "?" です。
: :fallback => Hash | Proc | Method
未定義の文字......に対する置換文字を設定します。このオプションに与えられるオブジェクトは Hash, Proc, Method のいずれかまたは [] メソッドを持つオブジェクトです。
キーは現在のトランスコーダのソースエンコーディングで未定義の文字......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# encode(encoding , **options) -> String (21127.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...す。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエンコーディングならば U+FFFD、それ以外では "?" です。
: :fallback => Hash | Proc | Method
未定義の文字......に対する置換文字を設定します。このオプションに与えられるオブジェクトは Hash, Proc, Method のいずれかまたは [] メソッドを持つオブジェクトです。
キーは現在のトランスコーダのソースエンコーディングで未定義の文字......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# encode(encoding , from _ encoding , **options) -> String (21127.0) -
self を指定したエンコーディングに変換した文字列を作成して返します。引数 を2つ与えた場合、第二引数は変換元のエンコーディングを意味します。さもな くば self のエンコーディングが使われます。 無引数の場合は、Encoding.default_internal が nil でなければそれが変換先のエンコーディングになり、かつ :invalid => :replace と :undef => :replace が指定されたと見なされ、nil ならば変換は行われません。
...す。
: :replace => string
前述の :invalid => :replace や :undef => :replace で用いられる置換文字を指定します。デフォルトは Unicode 系のエンコーディングならば U+FFFD、それ以外では "?" です。
: :fallback => Hash | Proc | Method
未定義の文字......に対する置換文字を設定します。このオプションに与えられるオブジェクトは Hash, Proc, Method のいずれかまたは [] メソッドを持つオブジェクトです。
キーは現在のトランスコーダのソースエンコーディングで未定義の文字......ようとすると Encoding::UndefinedConversionError が発生する
str = "\u00b7\u2014"
str.encode("Windows-31J", fallback: { "\u00b7" => "\xA5".force_encoding("Windows-31J"),
"\u2014" => "\x81\x5C".force_encoding("Windows-31J") })
//}
@see String#encode!... -
String
# to _ s -> String (21120.0) -
self を返します。
...であるメソッド some_method があるとき、
to_s メソッドを使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_method(5).to_s.downcase
//}... -
String
# to _ str -> String (21120.0) -
self を返します。
...であるメソッド some_method があるとき、
to_s メソッドを使うと以下のように統一的に処理できます。
//emlist[例][ruby]{
# some_method(5).downcase だと返り値が nil のときに
# エラーになるので to_s をはさむ
p some_method(5).to_s.downcase
//}... -
JSON
:: Ext :: Generator :: GeneratorMethods :: String (21016.0) -
Alias of JSON::Generator::GeneratorMethods::String
...Alias of JSON::Generator::GeneratorMethods::String... -
JSON
:: Generator :: GeneratorMethods :: String (21016.0) -
String に JSON で使用するインスタンスメソッドを追加するためのモジュールです。
...String に JSON で使用するインスタンスメソッドを追加するためのモジュールです。... -
Object
# method(name) -> Method (18254.0) -
オブジェクトのメソッド name をオブジェクト化した Method オブジェクトを返します。
...した
Method オブジェクトを返します。
@param name メソッド名をSymbol またはStringで指定します。
@raise NameError 定義されていないメソッド名を引数として与えると発生します。
//emlist[][ruby]{
me = -365.method(:abs)
p me #=> #<Method: Integer#......abs>
p me.call #=> 365
//}
@see Module#instance_method, Method, BasicObject#__send__, Object#send, Kernel.#eval, Object#singleton_method... -
Net
:: HTTPGenericRequest # method -> String (18214.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}... -
Net
:: HTTPHeader # method -> String (18208.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}...