Sha256: 64675030931f8e5b2c3e455b55303b1ad18c97e67f4353a3ffe9e926854fc968
Contents?: true
Size: 635 Bytes
Versions: 5
Compression:
Stored size: 635 Bytes
Contents
module Bowline::Generators class BinderGenerator < NamedGenerator desc <<-DESC Generates a new binder. DESC alias :plain_class_name :class_name def class_name super + "Binder < Bowline::Binders::Base" end def bind_name plain_class_name.singularize end def file_name super + "_binder" end first_argument :name, :required => true, :desc => "binder name" template :binder do |template| template.source = "binder.rb" template.destination = "app/binders/#{file_name}.rb" end end add :binder, BinderGenerator end
Version data entries
5 entries across 5 versions & 1 rubygems