Sha256: dcaa1a14805a2dfebe990a1312fa6cc4733f0a6e241476ee922d5ca59fced2ed

Contents?: true

Size: 453 Bytes

Versions: 1

Compression:

Stored size: 453 Bytes

Contents

module Rack
  module DevMark
    class RailsOptions
      attr_accessor :enable, :theme

      alias_method :custom_theme, :theme
      alias_method :custom_theme=, :theme=

      %w(before after).each do |type|
        method_name = "insert_#{type}"
        define_method method_name do |middleware|
          @insert_type = [method_name, middleware]
        end
      end

      def insert_type
        @insert_type ||= []
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-dev-mark-0.6.4 lib/rack/dev-mark/rails_options.rb