class Passbook::StaticFile
Attributes
filename[R]
Public Class Methods
new(name, path)
click to toggle source
# File lib/passbook/static_file.rb, line 7 def initialize(name, path) @filename, @path = name, Pathname(path) end
Public Instance Methods
content()
click to toggle source
# File lib/passbook/static_file.rb, line 11 def content @content ||= @path.read end