種類
- インスタンスメソッド (540)
- クラス (264)
- 文書 (12)
- ライブラリ (12)
- 特異メソッド (8)
クラス
-
RSS
:: Maker :: ItemsBase (60) -
RSS
:: Maker :: ItemsBase :: ItemBase (216) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Categories (12) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Enclosure (72) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Guid (48) -
RSS
:: Maker :: RSS20 :: Items :: Item :: Source (48) -
RSS
:: Maker :: RSSBase (12) -
RSS
:: RDF (12) -
RSS
:: RDF :: Channel (24) -
RSS
:: RDF :: Channel :: Items (12) -
RSS
:: Rss (12) -
RSS
:: Rss :: Channel (12) -
Thread
:: Queue (8)
キーワード
- Categories (24)
- CategoriesBase (12)
- Enclosure (24)
- EnclosureBase (12)
- Guid (24)
- GuidBase (12)
- Item (36)
- ItemBase (12)
- Items (48)
- ItemsBase (12)
- OpenStruct (12)
- Source (24)
- SourceBase (12)
- categories (12)
- comments (12)
- comments= (12)
- content (24)
- content= (24)
- date (12)
- date= (12)
- description (12)
- description= (12)
-
do
_ sort (12) -
do
_ sort= (12) - enclosure (12)
- guid (12)
- isPermaLink (12)
- isPermaLink= (12)
- items= (12)
- length (12)
- length= (12)
- link (12)
- link= (12)
-
max
_ size (12) -
max
_ size= (12) - new (8)
-
new
_ category (12) -
new
_ item (12) - pubDate (12)
- pubDate= (12)
- resources (12)
- rss (12)
-
ruby 1
. 8 . 5 feature (12) - source (12)
- title (12)
- title= (12)
- type (12)
- type= (12)
- url (24)
- url= (24)
検索結果
先頭5件
-
rss (300.0)
-
RSS を扱うためのライブラリです。
...リーダとなりま
す。すべてのitem要素を取得するには以下のようにします。
rss = RSS::Parser.parse(rss_source)
rss.items # => /rdf:RDF/item要素の配列; [RSS::RDF::Item, ...]
==== ライタ(writer)
rdf:RDF要素の子要素であるchannel要素を設定するに......]=などを用いて要素を設定します.
rss = RSS::Parser.parse(rss_source)
item = RSS::RDF::Item.new(rdf_about_value)
rss.items << item
rss.items.last == item # => true
注意: item=/set_itemなどはRubyっぽくないので使わないでくださ
い.
=== 出力
RSS Parser......maker.channel.title = "Example"
maker.channel.description = "Example Site"
maker.channel.link = "http://example.com/"
item = maker.items.new_item
item.link = "http://example.com/article.html"
item.title = "Sample Article"
end
===== 更新時刻を追加
もし,先の... -
Thread
:: Queue . new(items) -> Thread :: Queue (113.0) -
新しいキューオブジェクトを生成します。
...新しいキューオブジェクトを生成します。
@param items 初期値を Enumerable で指定します。
//emlist[][ruby]{
q = Queue.new
q = Queue.new([a, b, c])
q = Queue.new(items)
//}... -
OpenStruct (18.0)
-
要素を動的に追加・削除できる手軽な構造体を提供するクラスです。
...uct.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", age=4, items=["candy", "toy"]>... -
ruby 1
. 8 . 5 feature (18.0) -
ruby 1.8.5 feature ruby 1.8.4 から ruby 1.8.5 までの変更点です。
...xxx.new_yyy(&block) [compat]
maker.items.new_itemなどがブロックをとれるようになりました。((<ruby-talk:197284>))
今まで
item = maker.items.new_item
item.xxx = yyy
...
と書いていたものが
maker.items.new_item |item|
item.xxx = yyy... -
Thread
:: Queue . new -> Thread :: Queue (13.0) -
新しいキューオブジェクトを生成します。
...新しいキューオブジェクトを生成します。
@param items 初期値を Enumerable で指定します。
//emlist[][ruby]{
q = Queue.new
q = Queue.new([a, b, c])
q = Queue.new(items)
//}...