Sha256: 2ef8400260f13c1509f6deb6e517d5c1ed85d4f34aa4f6413bfd140664a702c8

Contents?: true

Size: 464 Bytes

Versions: 83

Compression:

Stored size: 464 Bytes

Contents

# File: lib/tenon/videos.rb
# Adds configuration options for videos
# eg.
#
# Tenon.configure do |config|
#   config.events.display = :calendar
# end

module Tenon
  class Configuration
    attr_accessor :events

    def events
      @events ||= EventConfiguration.new
    end

    class EventConfiguration
      attr_accessor :display

      def initialize
        @display = :list
      end

      def display
        @display.to_sym
      end
    end
  end
end

Version data entries

83 entries across 83 versions & 1 rubygems

Version Path
tenon-1.1.8 lib/tenon/config/events.rb
tenon-1.1.7 lib/tenon/config/events.rb
tenon-1.1.6 lib/tenon/config/events.rb
tenon-1.1.5 lib/tenon/config/events.rb
tenon-1.1.4 lib/tenon/config/events.rb
tenon-1.1.3 lib/tenon/config/events.rb
tenon-1.1.2 lib/tenon/config/events.rb
tenon-1.1.1 lib/tenon/config/events.rb
tenon-1.0.76 lib/tenon/config/events.rb
tenon-1.0.75 lib/tenon/config/events.rb
tenon-1.0.74 lib/tenon/config/events.rb
tenon-1.0.73 lib/tenon/config/events.rb
tenon-1.0.72 lib/tenon/config/events.rb
tenon-1.0.71 lib/tenon/config/events.rb
tenon-1.0.70 lib/tenon/config/events.rb
tenon-1.0.69 lib/tenon/config/events.rb
tenon-1.0.68 lib/tenon/config/events.rb
tenon-1.0.67 lib/tenon/config/events.rb
tenon-1.0.66 lib/tenon/config/events.rb
tenon-1.0.65 lib/tenon/config/events.rb