class Razor::GenerableFile

Public Instance Methods

contents() click to toggle source
# File lib/razor/generable.rb, line 39
def contents
        File.read(src, :mode=>'rb')
end
dest_ext() click to toggle source
# File lib/razor/generable.rb, line 51
def dest_ext
        File.extname(dest_name)
end
generate() click to toggle source
# File lib/razor/generable.rb, line 43
def generate
        File.open(dest, 'wb') { |f| f << contents }
end
request() click to toggle source
# File lib/razor/generable.rb, line 47
def request
        self
end