Skip to content

Commit

Permalink
Make Item#raw_filename available on text items
Browse files Browse the repository at this point in the history
  • Loading branch information
gpakosz committed Apr 18, 2013
1 parent 09f973f commit 6dfcf0f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nanoc/base/source_data/item.rb
Expand Up @@ -33,7 +33,7 @@ class Item
attr_reader :raw_content

# @return [String] The filename pointing to the file containing this
# item’s content (only available for binary items)
# item’s content
attr_reader :raw_filename

# @return [Nanoc::Site] The site this item belongs to
Expand Down Expand Up @@ -82,6 +82,7 @@ def initialize(raw_content_or_raw_filename, attributes, identifier, params=nil)
if @is_binary
@raw_filename = raw_content_or_raw_filename
else
@raw_filename = attributes[:content_filename]
@raw_content = raw_content_or_raw_filename
end

Expand Down

0 comments on commit 6dfcf0f

Please sign in to comment.