Module: Headdesk::Check::ClassMethods

Defined in:
lib/headdesk/check.rb

Overview

Class methods for Check

Instance Method Summary collapse

Instance Method Details

#check_name(cname = nil) ⇒ Object



34
35
36
37
# File 'lib/headdesk/check.rb', line 34

def check_name(cname = nil)
  @check_name = cname if cname
  @check_name
end

#describe(desc = nil) ⇒ Object



29
30
31
32
# File 'lib/headdesk/check.rb', line 29

def describe(desc = nil)
  @last_desc = desc if desc
  @last_desc
end

#docObject



39
40
41
# File 'lib/headdesk/check.rb', line 39

def doc
  "#{check_name}.md"
end