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
- .build_board(info) ⇒ Object
- .environments_availables ⇒ Object
- .get_log_info ⇒ Object
- .show_log ⇒ Object
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_availables ⇒ Object
26 27 28 |
# File 'lib/logboard.rb', line 26 def self.environments_availables ENV_LIST.include?RAILS_ENV end |
.get_log_info ⇒ Object
22 23 24 |
# File 'lib/logboard.rb', line 22 def self.get_log_info "" end |
.show_log ⇒ Object
11 12 13 |
# File 'lib/logboard.rb', line 11 def self.show_log build_board(self.get_log_info)# if self.environments_availables end |