Module: Danger::Toc::Constructors

Defined in:
lib/toc/constructors.rb,
lib/toc/constructors/github_constructor.rb,
lib/toc/constructors/kramdown_constructor.rb

Defined Under Namespace

Classes: GithubConstructor, KramdownConstructor

Class Method Summary collapse

Class Method Details

.currentObject



11
12
13
# File 'lib/toc/constructors.rb', line 11

def self.current
  get Danger::Toc.config.format
end

.get(name) ⇒ Object



7
8
9
# File 'lib/toc/constructors.rb', line 7

def self.get(name)
  const_get "#{name.to_s.camelize}Constructor"
end