48件ヒット
[1-48件を表示]
(0.111秒)
種類
- インスタンスメソッド (24)
- クラス (12)
- ライブラリ (12)
クラス
-
RSS
:: RDF :: Channel (24)
キーワード
- OpenStruct (12)
- items (12)
- rss (12)
検索結果
-
RSS
:: RDF :: Channel # items= (18101.0) -
@todo
@todo -
OpenStruct (6006.0)
-
要素を動的に追加・削除できる手軽な構造体を提供するクラスです。
...的に追加・削除できる手軽な構造体を提供するクラスです。
OpenStruct のインスタンスに対して未定義なメソッド x= を呼ぶと、
OpenStruct クラスの BasicObject#method_missing で捕捉され、そのインスタンスに
インスタンスメソッド x......す。
require 'ostruct'
ab = OpenStruct.new
ab.foo = 25
p ab.foo # => 25
ab.bar = 2
p ab.bar # => 2
p ab # => <OpenStruct foo=25, bar=2>
ab.delete_field("foo")
p ab.foo # => nil
p ab # => <OpenStruct bar=2>
初期化にハ......require 'ostruct'
son = OpenStruct.new({ :name => "Thomas", :age => 3 })
p son.name # => "Thomas"
p son.age # => 3
son.age += 1
p son.age # => 4
son.items = ["candy","toy"]
p son.items # => ["candy","toy"]
p son # => #<OpenStruct name="Thomas... -
RSS
:: RDF :: Channel # items (3001.0) -
@todo
@todo -
rss (66.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 をサ......* Dublin Core モジュール http://web.resource.org/rss/1.0/modules/dc/
* Syndication モジュール http://web.resource.org/rss/1.0/modules/syndication/
* Content モジュール http://web.resource.org/rss/1.0/modules/content/
* Trackback モジュール http://madskills.com/public/xml/rss......Contentモジュールの要素にアクセスす
るには「content_要素名」というアクセサが用意されています。
サンプル1と同じようにパースするRSSはファイルに保存されていて
引数で与えられるものとします。
require 'rss'
items = []...