77件ヒット
[1-77件を表示]
(0.038秒)
種類
- インスタンスメソッド (33)
- 文書 (22)
- ライブラリ (11)
- 特異メソッド (11)
ライブラリ
-
rexml
/ document (33)
クラス
-
RDoc
:: Options (11) -
REXML
:: Document (22) -
REXML
:: XMLDecl (11)
キーワード
- new (11)
- rss (11)
-
ruby 1
. 8 . 3 feature (11) -
ruby 1
. 9 feature (11) - write (22)
検索結果
先頭5件
- RDoc
:: Options # encoding=(val) - REXML
:: XMLDecl . new(version = REXML :: XMLDecl :: DEFAULT _ VERSION , encoding = nil , standalone = nil) - REXML
:: Document # write(output = $ stdout , indent = -1 , transitive = false , ie _ hack = false , encoding=nil) -> () - ruby 1
. 8 . 3 feature - REXML
:: Document # write(output: $ stdout , indent: -1 , transitive: false , ie _ hack: false , encoding: nil) -> ()
-
RDoc
:: Options # encoding=(val) (27223.0) -
コマンドライン引数の --encoding オプションと同様の指定を行います。
...コマンドライン引数の --encoding オプションと同様の指定を行います。
@param val 設定する Encoding オブジェクトを指定します。... -
REXML
:: XMLDecl . new(version = REXML :: XMLDecl :: DEFAULT _ VERSION , encoding = nil , standalone = nil) (308.0) -
新たな XMLDecl オブジェクトを生成して返します。
...新たな XMLDecl オブジェクトを生成して返します。
version 以外は省略可能です。
@param version バージョン(文字列)
@param encoding エンコーディング(文字列 or nil)
@param standalone スタンドアロン文章かどうか("yes", "no", nil)... -
REXML
:: Document # write(output = $ stdout , indent = -1 , transitive = false , ie _ hack = false , encoding=nil) -> () (209.0) -
output に XML 文書を出力します。
...約する必要があるためである。
2.0.0以降ではキーワード引数による引数指定が可能です。
@param output 出力先(IO のように << で書き込めるオブジェクト)
@param indent インデントのスペースの数(-1 だとインデントしない)
@param tra... -
ruby 1
. 8 . 3 feature (198.0) -
ruby 1.8.3 feature *((<ruby 1.8 feature>)) *((<ruby 1.8.2 feature>))
...]
: FileUtils.chown_R [lib] [new]
: FileUtils.commands [lib] [new]
: FileUtils.options [lib] [new]
: FileUtils.have_option? [lib] [new]
: FileUtils.options_of [lib] [new]
: FileUtils.collect_method [lib] [new]
追加。
: FileUtils.rm_r [l......=== 2005-05-22
: OpenSSL::SSL::SSLServer#initialize(svr, ctx, session_id=nil)
session_id を受け付けるようになりました。((<ruby-core:4663>))
=== 2005-05-19
: REXML::Encoding#decode_sjis [lib] [bug]
: REXML::Encoding#encode_sjis [lib] [bug]
decode_sjis と encode_sjis が
逆に......エンコーディングは要素の内部エンコーディングからoutput_encoding=で設定したエンコーディングへ変換されます。
: StringIO [lib] [compat]
close, close_read, close_write が ((<IO>)) と同じように、
nil を返すようになりました。((<ruby-dev... -
REXML
:: Document # write(output: $ stdout , indent: -1 , transitive: false , ie _ hack: false , encoding: nil) -> () (109.0) -
output に XML 文書を出力します。
...約する必要があるためである。
2.0.0以降ではキーワード引数による引数指定が可能です。
@param output 出力先(IO のように << で書き込めるオブジェクト)
@param indent インデントのスペースの数(-1 だとインデントしない)
@param tra... -
ruby 1
. 9 feature (54.0) -
ruby 1.9 feature ruby version 1.9.0 は開発版です。 以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。 1.9.1 以降は安定版です。 バグ修正がメインになります。
...ruby 1.9 feature
ruby version 1.9.0 は開発版です。
以下にあげる機能は将来削除されたり互換性のない仕様変更がなされるかもしれません。
1.9.1 以降は安定版です。
バグ修正がメインになります。
記号について(特に重要なもの......ンコーディングからoutput_encoding=で設定したエンコーディングへ変換されます。
=== 2005-02-02
: ((<ripper/Ripper.slice>)) [ruby] [experimental]
追加。((<URL:http://i.loveruby.net/d/20050201.html#p02>))
=== 2005-01-15
: RSS::VERSION [lib]
0.1.2 -> 0.1.3
: RSS::......-12-26
: Net::IMAP::PlainAuthenticator [lib] [new]
=== 2004-12-14
: FileUtils.chown [lib] [new]
: FileUtils.chown_R [lib] [new]
=== 2004-12-07
: IO#read [change]
read(0) は常に "" を返すようになりました。
また、nonblocking mode でも動作が変わらなくなりまし... -
rss (42.0)
-
RSS を扱うためのライブラリです。
...参考
* RSS 0.91 http://backend.userland.com/rss091
* RSS 1.0 http://purl.org/rss/1.0/spec
* RSS 2.0 http://www.rssboard.org/rss-specification
* Atom 1.0 https://www.ietf.org/rfc/rfc4287.txt
=== 注意
RSS ParserはRSS 0.9x/1.0/2.0, Atom 1.0 をサポートしていますが,RSS 0.90......escription"
maker.items.each do |item|
item.title.content ||= "No title"
item.link ||= "UNKNOWN"
end
end
end
未設定の可能性がある要素にデフォルト値を設定しています。
出力する文字コードを変更するにはoutput_encoding=が使......:UnknownConversionMethodError例外が発生します。
先程のprint_itemsをEUC-JPで出力するように書き換えてみましょう。
def print_items(feed)
rss10 = convert_to_rss10(feed)
begin
rss10.output_encoding = "EUC-JP"
rescue RSS::UnknownConversionMethodError...