Class: Pseudohelp::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/pseudohelp/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#compilersObject

Returns the value of attribute compilers.



21
22
23
# File 'lib/pseudohelp/configuration.rb', line 21

def compilers
  @compilers
end

#extra_helpObject

    • *



33
34
35
# File 'lib/pseudohelp/configuration.rb', line 33

def extra_help
  @extra_help
end

Instance Method Details

#formatsObject



37
38
39
# File 'lib/pseudohelp/configuration.rb', line 37

def formats
  @formats ||= [:bbcode, :markdown, :textile]
end

#helpObject



41
42
43
44
45
46
47
# File 'lib/pseudohelp/configuration.rb', line 41

def help
  @help ||= {
    bbcode: Pseudohelp::Bbcode.documentation_hash,
    markdown: Pseudohelp::Markdown.documentation_hash,
    textile: Pseudohelp::Textile.documentation_hash
  }.deep_merge(extra_help) # .sort
end