Module: Shomen::Yard

Defined in:
lib/shomen-yard.rb,
lib/shomen-yard/command.rb,
lib/shomen-yard/generator.rb

Overview

Shomen Yard provides a utility for generating Shomen documentation from YARD cache.

Defined Under Namespace

Classes: Command, Generator

Class Method Summary collapse

Class Method Details

.const_missing(name) ⇒ Object

If constant missing check metadata.



22
23
24
# File 'lib/shomen-yard.rb', line 22

def self.const_missing(name)
  [name.to_s.downcase] || super(name)
end

.metadataHash

Access project metadata.

Returns:

  • (Hash)


12
13
14
15
16
17
# File 'lib/shomen-yard.rb', line 12

def self.
  @metadata ||= (
    require 'yaml'
    YAML.load_file(File.dirname(__FILE__) + '/shomen-yard.yml')
  )
end