module YardGhurt::Util
Utility methods in a separate module/mixin, so that a programmer can require/load a sole task:
require 'yard_ghurt/gfm_fix_task'
Else, programmers would be required to always require/load the entire yard_ghurt
module:
require 'yard_ghurt'
All internal code should use this module.
External code can either use this module or {YardGhurt}, which includes this module as a mixin.
@author Jonathan Bradley Whited @since 1.0.0
Constants
- SEM_VER_REGEX
@return a very flexible (non-strict) Semantic Versioning regex, ignoring pre-release/build-metadata @since 1.2.1
- TRUE_BOOLS
@return [Array<String>] the lower-case Strings that will equal to
true
Public Class Methods
included(mod)
click to toggle source
If +include Util+ is called, extend {ClassMethods}.
@param mod [Module] the module to extend
# File lib/yard_ghurt/util.rb, line 40 def self.included(mod) mod.extend ClassMethods end