Class | BlogRoll |
In: |
lib/nukumi2/plugins/blogroll.rb
|
Parent: | Object |
# File lib/nukumi2/plugins/blogroll.rb, line 16 16: def self.load(filename) 17: new YAML.load(File.read(filename)) 18: end
# File lib/nukumi2/plugins/blogroll.rb, line 20 20: def initialize(entries) 21: @entries = {} 22: entries.each { |cat, blogs| 23: @entries[cat] = blogs.map { |k, v| 24: Blog.new k, v['title'] || k, v['url'] 25: } 26: } 27: end