Class: Guideline::HashCommaChecker::HashParser

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

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.callbackObject (readonly)

Returns the value of attribute callback.



17
18
19
# File 'lib/guideline/checkers/hash_comma_checker.rb', line 17

def callback
  @callback
end

Class Method Details

.parse(&callback) ⇒ Object



19
20
21
22
# File 'lib/guideline/checkers/hash_comma_checker.rb', line 19

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