Class: Guideline::LongMethodChecker::MethodParser

Inherits:
Ripper
  • Object
show all
Defined in:
lib/guideline/checkers/long_method_checker.rb

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.callbackObject (readonly)

Returns the value of attribute callback.



34
35
36
# File 'lib/guideline/checkers/long_method_checker.rb', line 34

def callback
  @callback
end

Class Method Details

.parse(&callback) ⇒ Object



36
37
38
39
# File 'lib/guideline/checkers/long_method_checker.rb', line 36

def parse(*, &callback)
  @callback = callback
  super
end