class Nanoc::Core::PrefixedDataSource
Public Class Methods
new(data_source, items_prefix, layouts_prefix)
click to toggle source
Calls superclass method
Nanoc::Core::DataSource::new
# File lib/nanoc/core/prefixed_data_source.rb, line 6 def initialize(data_source, items_prefix, layouts_prefix) super({}, '/', '/', {}) @data_source = data_source @items_prefix = items_prefix @layouts_prefix = layouts_prefix end
Public Instance Methods
item_changes()
click to toggle source
# File lib/nanoc/core/prefixed_data_source.rb, line 22 def item_changes @data_source.item_changes end
items()
click to toggle source
# File lib/nanoc/core/prefixed_data_source.rb, line 14 def items @data_source.items.map { |d| d.with_identifier_prefix(@items_prefix) } end
layout_changes()
click to toggle source
# File lib/nanoc/core/prefixed_data_source.rb, line 26 def layout_changes @data_source.layout_changes end
layouts()
click to toggle source
# File lib/nanoc/core/prefixed_data_source.rb, line 18 def layouts @data_source.layouts.map { |d| d.with_identifier_prefix(@layouts_prefix) } end