Module: Tabl::Formats
- Defined in:
- lib/tabl/formats.rb,
lib/tabl/formats/html.rb
Defined Under Namespace
Modules: Html
Constant Summary collapse
- @@formats =
{}
Class Method Summary collapse
- .[](key) ⇒ Object
- .exist?(key) ⇒ Boolean
- .method_missing(key, *args) ⇒ Object
- .register(key, mod) ⇒ Object
Class Method Details
.[](key) ⇒ Object
17 18 19 |
# File 'lib/tabl/formats.rb', line 17 def self.[](key) @@formats[key] end |
.exist?(key) ⇒ Boolean
9 10 11 |
# File 'lib/tabl/formats.rb', line 9 def self.exist?(key) @@formats.exist?(key) end |
.method_missing(key, *args) ⇒ Object
13 14 15 |
# File 'lib/tabl/formats.rb', line 13 def self.method_missing(key, *args) @@formats[key] || super end |
.register(key, mod) ⇒ Object
5 6 7 |
# File 'lib/tabl/formats.rb', line 5 def self.register(key, mod) @@formats[key] = mod end |