Sha256: 12a53347a4b15b3aa06916300873f570aa1e20647e5c6fd5dce6fb80ae9862c1

Contents?: true

Size: 514 Bytes

Versions: 1

Compression:

Stored size: 514 Bytes

Contents

module <%= config[:gem_class] %>
  module ActionController
    def self.included base
      base.extend ClassMethods
    end
    
    module ClassMethods
			# TODO - Rename this method to your liking.
      def is_<%= config[:gem_name] %>_enhanced options = {}
        self.send :include, InstanceMethods
        
        # Default Options
        class_inheritable_reader :<%= config[:gem_name] %>_options
        write_inheritable_attribute :<%= config[:gem_name] %>_options, options
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gemsmith-0.5.0 lib/gemsmith/templates/lib/gem/action_controller/class_methods.rb.tmp