lib/zen/asset.rb in zen-0.2.5 vs lib/zen/asset.rb in zen-0.2.6
- old
+ new
@@ -35,20 +35,20 @@
# prefix.
# * stylesheet_prefix: Similar to the javascript_prefix option but for stylesheets.
#
# ## Building Assets
#
- # Building assets shouldn't be required as Zen already does this but if you happen to
+ # Building assets shouldn't be required as Zen already does this but if you happen to
# need it you can build the files as following:
#
# Zen::Asset.build(:stylesheet)
# Zen::Asset.build(:javascript)
#
# ## Controller Usage
#
- # While this module can be called by any other piece of code the class
- # Zen::Controller::AdminController provides shortcuts to Zen::Asset.javascript and
+ # While this module can be called by any other piece of code the class
+ # Zen::Controller::AdminController provides shortcuts to Zen::Asset.javascript and
# Zen::Asset.stylesheet. These shortcuts work identical but are defined as class methods
# and thus can be used inside your class declaration:
#
# class Something < Zen::Controller::AdminController
# stylesheet ['reset'], :global => true
@@ -135,11 +135,11 @@
# @param [Array] files A list of stylesheets (without their extensions) to load.
# @param [Hash] options A hash containing additional options to use.
# @option options [TrueClass] :global When set to true all the specified stylesheets
# will be loaded globally rather than just for the current action.
# @option options [String/Symbol] controller The name of the controller for which
- # the specified files should be loaded.
+ # the specified files should be loaded.
#
def self.stylesheet(files, options = {})
options = {
:prefix => File.join('/', self.options.prefix, self.options.stylesheet_prefix),
:type => :stylesheet
@@ -161,11 +161,11 @@
#
# @author Yorick Peterse
# @since 0.2.5
# @param [Symbol] type The type of assets to build.
# @return [String] The HTML tags for all the assets.
- #
+ #
def self.build(type)
type = type.to_sym
attrs = {}
controller = action.node.to_s.to_sym
gestalt = Ramaze::Gestalt.new
@@ -251,8 +251,7 @@
if !save[key].include?(f)
save[key].push(f)
end
end
end
-
- end
-end
+ end # Asset
+end # Zen