lib/jekyll/page.rb in jekyll-0.5.6 vs lib/jekyll/page.rb in jekyll-0.5.7
- old
+ new
@@ -2,11 +2,11 @@
class Page
include Convertible
attr_accessor :site
- attr_accessor :name, :ext, :basename
+ attr_accessor :name, :ext, :basename, :dir
attr_accessor :data, :content, :output
# Initialize a new Page.
# +site+ is the Site
# +base+ is the String path to the <source>
@@ -97,9 +97,13 @@
end
File.open(path, 'w') do |f|
f.write(self.output)
end
+ end
+
+ def inspect
+ "#<Jekyll:Page @name=#{self.name.inspect}>"
end
private
def index?