Module: LogBoard

Defined in:
lib/logboard.rb

Overview

LogBoard class

@Description: Show a board with dev informations on top of browser. Only show in development enviroments.

Constant Summary collapse

ENV_LIST =
["development"]

Class Method Summary collapse

Class Method Details

.build_board(info) ⇒ Object



16
17
18
19
20
# File 'lib/logboard.rb', line 16

def self.build_board(info)
    html = ""
    html << "<div><h1>Log Board</h1></div>"
    html 
end

.environments_availablesObject



26
27
28
# File 'lib/logboard.rb', line 26

def self.environments_availables
  ENV_LIST.include?RAILS_ENV
end

.get_log_infoObject



22
23
24
# File 'lib/logboard.rb', line 22

def self.get_log_info
    ""
end

.show_logObject



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

def self.show_log
   build_board(self.get_log_info)# if self.environments_availables
end