Roodi::Checks::NameCheck
Checks a module name to make sure it matches the specified pattern.
Keeping to a consistent nameing convention makes your code easier to read.
# File lib/roodi/checks/module_name_check.rb, line 11 def initialize(options = {}) pattern = options['pattern'] || DEFAULT_PATTERN super([:module], pattern, 'Module') end
# File lib/roodi/checks/module_name_check.rb, line 16 def find_name(node) node[1].class == Symbol ? node[1] : node[1].last end
[Validate]
Generated with the Darkfish Rdoc Generator 2.