module Stampy::Functions
Public Class Methods
declare(*args)
click to toggle source
# File lib/stampy/functions.rb, line 4 def self.declare(*args) Sass::Script::Functions.declare *args end
Public Instance Methods
stamp()
click to toggle source
@return {String}
# File lib/stampy/functions.rb, line 11 def stamp @timestamp = timestamp @version = version Sass::Script::String.new(comment) end
stampy()
click to toggle source
# File lib/stampy/functions.rb, line 18 def stampy stamp end
Private Instance Methods
comment()
click to toggle source
@return {String}
# File lib/stampy/functions.rb, line 42 def comment "Compiled on #{@timestamp} using Sass version #{@version.fetch(:string)}" end
timestamp()
click to toggle source
@return {String}
# File lib/stampy/functions.rb, line 28 def timestamp Time.now.strftime "%Y-%m-%d at %H:%M:%S" end
version()
click to toggle source
@return {Hash}
# File lib/stampy/functions.rb, line 35 def version Sass.version end