Method: Mutx::Database::MongoConnector.help_title

Defined in:
lib/mutx/database/mongo_connector.rb

.help_title(page) ⇒ Object

Returns the title of a page



132
133
134
135
136
# File 'lib/mutx/database/mongo_connector.rb', line 132

def self.help_title page
  Mutx::Support::Log.debug "getting db help title" if Mutx::Support::Log        
  result = $documentation.find({"title" => page}).to_a.first
  result["title"].to_s.gsub('_', ' ').capitalize if result != nil
end