class Assets::Rule::File

Attributes

name[R]

Return name

@return [String]

@api private

path[R]

Return path

TODO: Remove this

@return [String]

@api private

Public Instance Methods

body() click to toggle source

Return body of asset

@return [String]

@api private

# File lib/assets/rule/file.rb, line 41
def body
  ::File.binread(path)
end
extname() click to toggle source

Return extname

@return [String]

@api private

# File lib/assets/rule/file.rb, line 30
def extname
  ::File.extname(path)
end
mime() click to toggle source

Return mime type

@return [Mime]

@api private

# File lib/assets/rule/file.rb, line 51
def mime
  Mime.extname(extname)
end
updated_at() click to toggle source

Return modification time

@return [Time]

@api private

# File lib/assets/rule/file.rb, line 62
def updated_at
  ::File.mtime(path)
end