Module: Tableview
- Defined in:
- lib/tableview.rb,
lib/tableview/tv.rb,
lib/tableview/version.rb,
lib/tableview/responder.rb,
lib/tableview/view_handler.rb,
lib/generators/tableview/tableview_generator.rb,
lib/generators/tableview/install/install_generator.rb
Defined Under Namespace
Modules: Generators, Helper, Output, Responder Classes: NoOuputClassError, TV, ViewHandler
Constant Summary collapse
- VERSION =
"0.3.3"
Class Method Summary collapse
Class Method Details
.output_class(format) ⇒ Object
14 15 16 17 18 19 20 21 22 |
# File 'lib/tableview.rb', line 14 def self.output_class(format) format = :html if format.blank? begin require File.join(File.dirname(__FILE__), "tableview", "output", format.to_s.downcase) rescue raise NoOuputClassError end ("Tableview::Output::" + format.to_s.upcase).constantize end |