class Radical::Asset

Attributes

path[R]

Public Class Methods

new(filename, path:) click to toggle source
# File lib/radical/asset.rb, line 7
def initialize(filename, path:)
  @filename = filename
  @path = path
end

Public Instance Methods

content() click to toggle source
# File lib/radical/asset.rb, line 16
def content
  File.read(full_path)
end
ext() click to toggle source
# File lib/radical/asset.rb, line 20
def ext
  File.extname(@filename)
end
full_path() click to toggle source
# File lib/radical/asset.rb, line 12
def full_path
  File.join(path, @filename)
end