Class: Broadway::Processor::Link
- Inherits:
-
Object
- Object
- Broadway::Processor::Link
- Defined in:
- lib/broadway/processors/link.rb
Class Method Summary collapse
- .tree!(site, name, &block) ⇒ Object (also: menu!)
Instance Method Summary collapse
-
#initialize(link, site, options = {}) ⇒ Link
constructor
A new instance of Link.
Constructor Details
#initialize(link, site, options = {}) ⇒ Link
Returns a new instance of Link.
36 37 38 39 40 41 |
# File 'lib/broadway/processors/link.rb', line 36 def initialize(link, site, = {}) link.site = site link.href = [:href] unless [:href].blank? link.title = [:title] unless [:title].blank? link.categories = [:categories] unless [:categories].blank? end |