Fix method comments
`rake doc` shows some warnings. I fixed method comments to suppress it.
This commit is contained in:
parent
92954a7c95
commit
3de491981a
|
@ -19,7 +19,7 @@ module Middleman
|
||||||
# @deprecated Prefer accessing settings through "config".
|
# @deprecated Prefer accessing settings through "config".
|
||||||
#
|
#
|
||||||
# @param [Symbol] key Name of the attribue
|
# @param [Symbol] key Name of the attribue
|
||||||
# @param value Attribute value
|
# @param default Attribute value
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def set(key, default=nil, &block)
|
def set(key, default=nil, &block)
|
||||||
config.define_setting(key, default)
|
config.define_setting(key, default)
|
||||||
|
|
|
@ -143,7 +143,7 @@ module Middleman
|
||||||
|
|
||||||
# Whether the source file is binary.
|
# Whether the source file is binary.
|
||||||
#
|
#
|
||||||
# @retrun [Boolean]
|
# @return [Boolean]
|
||||||
def binary?
|
def binary?
|
||||||
::Middleman::Util.binary?(source_file)
|
::Middleman::Util.binary?(source_file)
|
||||||
end
|
end
|
||||||
|
|
|
@ -126,8 +126,6 @@ module Middleman
|
||||||
|
|
||||||
# Register a handler to provide metadata on a url path
|
# Register a handler to provide metadata on a url path
|
||||||
# @param [Regexp] matcher
|
# @param [Regexp] matcher
|
||||||
# @param [Symbol] origin an indicator of where this metadata came from - only one
|
|
||||||
# block per [matcher, origin] pair may exist.
|
|
||||||
# @return [Array<Array<Proc, Regexp>>]
|
# @return [Array<Array<Proc, Regexp>>]
|
||||||
def provides_metadata_for_path(matcher=nil, &block)
|
def provides_metadata_for_path(matcher=nil, &block)
|
||||||
@_provides_metadata_for_path ||= []
|
@_provides_metadata_for_path ||= []
|
||||||
|
|
|
@ -133,7 +133,7 @@ module Middleman
|
||||||
# Get a recusive list of files inside a set of paths.
|
# Get a recusive list of files inside a set of paths.
|
||||||
# Works with symlinks.
|
# Works with symlinks.
|
||||||
#
|
#
|
||||||
# @param path A path string or Pathname
|
# @param paths Some paths string or Pathname
|
||||||
# @return [Array] An array of filenames
|
# @return [Array] An array of filenames
|
||||||
def self.all_files_under(*paths)
|
def self.all_files_under(*paths)
|
||||||
paths.flatten!
|
paths.flatten!
|
||||||
|
|
|
@ -50,7 +50,6 @@ module Middleman
|
||||||
# Output a stylesheet link tag based on the current path
|
# Output a stylesheet link tag based on the current path
|
||||||
#
|
#
|
||||||
# @param [Symbol] asset_ext The type of asset
|
# @param [Symbol] asset_ext The type of asset
|
||||||
# @param [String] separator How to break up path in parts
|
|
||||||
# @param [String] asset_dir Where to look for assets
|
# @param [String] asset_dir Where to look for assets
|
||||||
# @return [void]
|
# @return [void]
|
||||||
def auto_tag(asset_ext, asset_dir=nil)
|
def auto_tag(asset_ext, asset_dir=nil)
|
||||||
|
|
Loading…
Reference in a new issue