class FormatFeature
Attributes
features[R]
Public Class Methods
new(options)
click to toggle source
# File lib/petro/format_feature.rb, line 5 def initialize(options) @features = build_features(options) end
Public Instance Methods
build_features(options)
click to toggle source
What do you want??
* All I care about is the code to generate controllers and models. * A feature is both a controller and model, if they both exist.
# File lib/petro/format_feature.rb, line 19 def build_features(options) options['features'].map do |f| Feature.new(f['name'], f) end end