Class: Boundy::Formatter::Sql::Factory
- Inherits:
-
Object
- Object
- Boundy::Formatter::Sql::Factory
- Defined in:
- lib/boundy/formatter/sql/factory.rb
Instance Method Summary collapse
- #build(obj, name) ⇒ Object
-
#initialize(klass) ⇒ Factory
constructor
A new instance of Factory.
Constructor Details
#initialize(klass) ⇒ Factory
Returns a new instance of Factory.
5 6 7 |
# File 'lib/boundy/formatter/sql/factory.rb', line 5 def initialize(klass) @klass = klass end |
Instance Method Details
#build(obj, name) ⇒ Object
8 9 10 |
# File 'lib/boundy/formatter/sql/factory.rb', line 8 def build(obj, name) @klass.new(obj, name) end |