Method: Prigner::Model#initialize

Defined in:
lib/prigner/model.rb

#initialize(path, binder = {}) ⇒ Model

Initializes a model passing all attributes by Hash.



74
75
76
77
# File 'lib/prigner/model.rb', line 74

def initialize(path, binder = {})
  @path   = Pathname.new(path)
  @binder = (binder.kind_of? Hash) ? binder.to_struct : binder
end