Methods

Roodi::Checks::MethodNameCheck

Checks a method name to make sure it matches the specified pattern.

Keeping to a consistent nameing convention makes your code easier to read.

Constants

DEFAULT_PATTERN

Public Class Methods

new(options = {}) click to toggle source
# File lib/roodi/checks/method_name_check.rb, line 11
def initialize(options = {})
  pattern = options['pattern'] || DEFAULT_PATTERN
  super([:defn], pattern, 'Method')
end

Public Instance Methods

find_name(node) click to toggle source
# File lib/roodi/checks/method_name_check.rb, line 16
def find_name(node)
  node[1]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.