Class: Chewy::Type::Witchcraft::Cauldron
- Defined in:
- lib/chewy/type/witchcraft.rb
Instance Method Summary collapse
- #brew(object, crutches = nil) ⇒ Object
-
#initialize(type) ⇒ Cauldron
constructor
A new instance of Cauldron.
Constructor Details
#initialize(type) ⇒ Cauldron
Returns a new instance of Cauldron.
43 44 45 |
# File 'lib/chewy/type/witchcraft.rb', line 43 def initialize(type) @type = type end |
Instance Method Details
#brew(object, crutches = nil) ⇒ Object
47 48 49 |
# File 'lib/chewy/type/witchcraft.rb', line 47 def brew(object, crutches = nil) alicorn.call(object, crutches).as_json end |