るりまサーチ

最速Rubyリファレンスマニュアル検索!
588件ヒット [501-588件を表示] (0.057秒)

別のキーワード

  1. string []=
  2. string slice
  3. string []
  4. string slice!
  5. string gsub

検索結果

<< < ... 4 5 6 >>

CGI::HtmlExtension#form(method = "post", action = nil, enctype = "application/x-www-form-urlencoded") -> String (242.0)

form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。

.../x-www-form-urlencoded" です。

例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="application/x-www-form-urlencoded">string</FORM>

form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urlencoded">string</FORM>

form("get", "url"){ "string" }
# <FORM M...
...ETHOD="get" ACTION="url" ENCTYPE="application/x-www-form-urlencoded">string</FORM>...

CGI::HtmlExtension#form(method = "post", action = nil, enctype = "application/x-www-form-urlencoded") { ... } -> String (242.0)

form 要素を生成します。 ブロックを与えると、ブロックを評価した結果が内容になります。

.../x-www-form-urlencoded" です。

例:
form{ "string" }
# <FORM METHOD="post" ENCTYPE="application/x-www-form-urlencoded">string</FORM>

form("get"){ "string" }
# <FORM METHOD="get" ENCTYPE="application/x-www-form-urlencoded">string</FORM>

form("get", "url"){ "string" }
# <FORM M...
...ETHOD="get" ACTION="url" ENCTYPE="application/x-www-form-urlencoded">string</FORM>...

Regexp.compile(string, option = nil, code = nil) -> Regexp (232.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

第一引数が正規表現であれば第一引数を複製して返します。第二、第三引数は警告の上無視されます。

@param string 正規表現を文字列として与えま...
...して見なされ
、真(nil, false 以外)であれば
Regexp::IGNORECASE の指定と同じになります。

@param code "n", "N" が与えられた時には、生成された正規表現のエンコーディングは ASCII-8BIT になります。
それ...

Regexp.new(string, option = nil, code = nil) -> Regexp (232.0)

文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

...文字列 string をコンパイルして正規表現オブジェクトを生成して返します。

第一引数が正規表現であれば第一引数を複製して返します。第二、第三引数は警告の上無視されます。

@param string 正規表現を文字列として与えま...
...して見なされ
、真(nil, false 以外)であれば
Regexp::IGNORECASE の指定と同じになります。

@param code "n", "N" が与えられた時には、生成された正規表現のエンコーディングは ASCII-8BIT になります。
それ...

WEBrick::HTTPStatus.#reason_phrase(code) -> String (208.0)

指定された整数が表すステータスコードに対応する reason phrase を表す文字列を返します。

...指定された整数が表すステータスコードに対応する reason phrase
を表す文字列を返します。

@param code HTTP のステータスコードを表す整数か文字列を指定します。

require 'webrick'
p WEBrick::HTTPStatus.reason_phrase(304) #=> "Not Modified"...

絞り込み条件を変える

Net::FTP#last_response -> String (107.0)

サーバからの最後の応答を文字列で返します。

...サーバからの最後の応答を文字列で返します。

例えばログイン(Net::FTP#login)に成功した場合には
"230 Login successful.\n" を返します。

@see Net::FTP#last_response_code...

Ruby用語集 (90.0)

Ruby用語集 A B C D E F G I J M N O R S Y

...cent

: 0 オリジン
: zero-based
番号が 0 から始まること。

例えば、
Array や Vector、Matrix などの要素の番号、
String
における文字の位置、
といったものは 0 オリジンである。

: 1 オリジン
: one-based
番号が 1 から始まるこ...
...論を持った静的型付け言語であり、処理系はコンパイラーである。

https://ja.crystal-lang.org/

: CSI 方式
CSI は Code Set Independent の頭字語。
プログラミング言語の処理系が文字列を扱う際のエンコーディングに関する方針の一...
...
オブジェクトではない。

ただし、メソッド、ブロックはそれぞれオブジェクト化できる。

なお、「String オブジェクト」のような、クラス名+「オブジェクト」の
形の表現は、そのクラスのインスタンスを指す。...

kconv (66.0)

日本語文字コードの変換を手軽に行うためのライブラリです。

...日本語文字コードの変換を手軽に行うためのライブラリです。

kconv を require すると String クラスに変換用のメソッドが定義されます。
Kconv にも同等のメソッドが定義されます。 Kconv には
エンコーディングを表す定数も定...
...newstring = Kconv.kconv(string, Kconv::JIS, Kconv::AUTO)
newstring = Kconv.tojis(string)
newstring = Kconv.toeuc(string)
newstring = Kconv.tosjis(string)
guessed_code = Kconv.guess(string)
//}

または

//emlist[][ruby]{
require 'kconv'
newstring = string.kconv(Kconv::JIS, Kconv::AUTO)
newstring =...
...string.tojis
newstring = string.toeuc
newstring = string.tosjis
//}...

NEWS for Ruby 3.1.0 (42.0)

NEWS for Ruby 3.1.0 このドキュメントは前回リリース以降のバグ修正を除くユーザーに影響のある機能の変更のリストです。

...には、ハッシュリテラルを使用する必要があります。 16806

* String
* Unicodeと絵文字のバージョンが13.0.0に更新されました。 17750 18029
* String#unpack と String#unpack1 が任意のバイト数をスキップした後にアンパックを開始す...
...eadline-ext 0.1.4
* reline 0.3.0
* resolv 0.2.1
* rinda 0.1.1
* ruby2_keywords 0.0.5
* securerandom 0.1.1
* set 1.0.2
* stringio 3.0.1
* strscan 3.0.1
* tempfile 0.1.2
* time 0.2.0
* timeout 0.2.0
* tmpdir 0.1.2
* un 0.2.0
* uri 0.11.0
* ya...
...844

//emlist{
# `T` must be compatible with the `_Output` interface.
# `PrettyPrint[String]` is ok, but `PrettyPrint[Integer]` is a type error.
class PrettyPrint[T < _Output]
interface _Output
def <<: (String) -> void
end

attr_reader output: T

def initialize: (T output) -> void
end
//...

Refinement#import_methods(*modules) -> self (18.0)

モジュールからメソッドをインポートします。

...level)
' ' * level + self
end
end

module M
refine String do
import_methods StrUtils
end
end

using M
p "foo".indent(3) # => " foo"

module M
refine String do
import_methods Enumerable
# Can't import method which is not defined with Ruby code: Enumerable#drop
end
end
//}...

絞り込み条件を変える

<< < ... 4 5 6 >>