Sha256: 1f85724068f0641676e24d4fa6e2692d6acbef8c7b0f00a168c37f2240d4b40e

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

require "neutral/engine"

require "jquery-rails"
require "font-awesome-rails"

require "neutral/configuration"

module Neutral
  autoload :Engine, 'neutral/engine'
  autoload :Errors, 'neutral/errors'

  module Model
    autoload :ActiveRecordExtension, 'neutral/model/active_record_extension'
    autoload :VoteCached, 'neutral/model/vote_cached'
  end

  module VotingBuilder
    autoload :Builder, 'neutral/voting_builder/builder'
    autoload :Elements, 'neutral/voting_builder/elements'
    autoload :Router, 'neutral/voting_builder/router'
    autoload :Structure, 'neutral/voting_builder/structure'
  end

  module Helpers
    autoload :Routes, 'neutral/helpers/routes'
    autoload :CurrentVoter, 'neutral/helpers/current_voter'
    autoload :ActionViewExtension, 'neutral/helpers/action_view_extension'
  end

  module Icons
    autoload :Collection, 'neutral/icons/collection'
    autoload :Set, 'neutral/icons/set'
  end

  def self.define(&block)
    module_eval(&block)
  end

  def self.set(name, &block)
    icons.add Icons::Set.new(name, &block)
  end

  def self.icons
    @icons ||= Icons::Collection.new
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
neutral-0.0.10 lib/neutral.rb
neutral-0.0.9 lib/neutral.rb
neutral-0.0.8 lib/neutral.rb
neutral-0.0.7 lib/neutral.rb