Class: Mech::Compiler

Inherits:
Object
  • Object
show all
Defined in:
lib/mech.rb,
lib/mech/compiler.rb

Defined Under Namespace

Classes: Format

Class Method Summary collapse

Class Method Details

.build(format, params = {}) ⇒ Object



3
4
5
# File 'lib/mech/compiler.rb', line 3

def self.build(format, params = {})
  Mech::Compiler::Format.const_get(format).new
end