class Potion::Layout
Attributes
content[RW]
name[RW]
path[RW]
site[RW]
Public Class Methods
new(path, site)
click to toggle source
# File lib/potion/layout.rb, line 5 def initialize(path, site) @path = path @site = site @name = File.split(@path)[1].gsub(File.extname(@path), "") @content = File.open(@path) {|stream| stream.read } end
Public Instance Methods
==(other)
click to toggle source
# File lib/potion/layout.rb, line 12 def ==(other) @path == other.path && @site == other.site end