Module: Danger::Toc::Config
Instance Attribute Summary collapse
-
#files ⇒ Object
Returns the value of attribute files.
- #format ⇒ Object
-
#header ⇒ Object
Returns the value of attribute header.
Instance Method Summary collapse
Instance Attribute Details
#files ⇒ Object
Returns the value of attribute files.
6 7 8 |
# File 'lib/toc/config.rb', line 6 def files @files end |
#format ⇒ Object
19 20 21 |
# File 'lib/toc/config.rb', line 19 def format @format ||= default_format end |
#header ⇒ Object
Returns the value of attribute header.
6 7 8 |
# File 'lib/toc/config.rb', line 6 def header @header end |
Instance Method Details
#default_format ⇒ Object
23 24 25 |
# File 'lib/toc/config.rb', line 23 def default_format :github end |
#reset ⇒ Object
27 28 29 30 31 |
# File 'lib/toc/config.rb', line 27 def reset self.files = ['README.md'] self.header = 'Table of Contents' self.format = default_format end |