Method: FormatFeature::Feature#initialize

Defined in:
lib/petro/format_feature.rb

#initialize(name, options) ⇒ Feature

Returns a new instance of Feature.



29
30
31
32
33
# File 'lib/petro/format_feature.rb', line 29

def initialize(name, options)
  @name       = name
  @controller = ::Formatter::Controller.new(options.fetch('controller', {}))
  @model      = ::Formatter::Model.new(options.fetch('model', {}))
end