種類
- インスタンスメソッド (12)
- ライブラリ (12)
- 文書 (12)
- 特異メソッド (12)
ライブラリ
- psych (24)
クラス
-
Psych
:: Nodes :: Scalar (24)
キーワード
- base64 (12)
- new (12)
-
ruby 1
. 6 feature (12)
検索結果
先頭4件
-
Psych
:: Nodes :: Scalar # plain=(bool) (18100.0) -
scalar が plain style であるかどうかを変更します。
scalar が plain style であるかどうかを変更します。
@param bool 設定する真偽値
@see Psych::Nodes::Scalar#plain,
Psych::Nodes::Scalar.new -
Psych
:: Nodes :: Scalar . new(value , anchor=nil , tag=nil , plain=true , quoted=false , style=ANY) -> Psych :: Nodes:Scalar (101.0) -
Scalar オブジェクトを生成します。
Scalar オブジェクトを生成します。
value は scalar の値を文字列で指定します。
anchor には scalar に付加されている anchor を文字列で指定します。
anchor を付けない場合には nil を指定します。
tag には scalar に付加されている tag を文字列で指定します。
tag を付けない場合には nil を指定します。
plain は plain style であるかどうか、quoted は quoted style であるかどうか
を指定します。style には node の style を整数値で渡します。
style は次... -
base64 (6.0)
-
Base64 エンコード / デコードを行うメソッドを定義したモジュールを提供するライブラリです。
...使用方法
require "base64"
enc = Base64.encode64('Send reinforcements')
# => "U2VuZCByZWluZm9yY2VtZW50cw==\n"
plain = Base64.decode64(enc)
# => "Send reinforcements"
データをエンコードするために Base64 エンコードを... -
ruby 1
. 6 feature (6.0) -
ruby 1.6 feature ruby version 1.6 は安定版です。この版での変更はバグ修正がメイン になります。
...が"text/plain; charset=iso-8859-1"
のように書き換えられていました。
((<ruby-dev:14716>))
require 'cgi'
TEXT_PLAIN = "text/plain"
cgi = CGI.new
print cgi.header("type" => TEXT_PLAIN,
"charset" => "iso-8859-1")
pr......Content-Type: text/plain; charset=iso-8859-1
^M
TEXT_PLAIN: text/plain; charset=iso-8859-1
TEXT_PLAIN: text/plain
=> ruby 1.6.5 (2001-09-19) [i586-linux]
Content-Type: text/plain; charset=iso-8859-1
^M
TEXT_PLAIN: text/plain...