Module: Syncro::Scriber::Base::ClassMethods

Defined in:
lib/syncro/scriber/base.rb

Instance Method Summary collapse

Instance Method Details

#record(type, options = {}) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/syncro/scriber/base.rb', line 18

def record(type, options = {})
  options.merge!({
    :klass   => self, 
    :type    => type
  })
  Scribe.create(options)
end