Sha256: b4fe7251a6707494652cf43732a352866761154903d6612537e21b1d3816a045

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 Bytes

Contents

module Shakespeare
  class Settings
    class << self      
      def layout
        @layout ||= 'admin'
      end
      
      def layout=(layout_choice)
        @layout = layout_choice
      end
      
      def before_filters
        @before_filters ||= []
      end
      
      def before_filters=(filters)
        @before_filters ||= filters
      end
      
      def allow_anonymous
        @allow_anonymous ||= false
      end
      
      def allow_anonymous=(boolean)
        @allow_anonymous = boolean
      end
      
      def format_method
        @format_method ||= 'simple_format'
      end
      
      def format_method=(format_method_choice)
        @format_method = format_method_choice
      end
    end
  end
  
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
shakespeare-0.3.4 lib/shakespeare/settings.rb
shakespeare-0.3.2 lib/shakespeare/settings.rb
shakespeare-0.3.1 lib/shakespeare/settings.rb
shakespeare-0.3.0 lib/shakespeare/settings.rb