Sha256: 677d212c64ef5a48652ff6ceef3b2fb4286316a953919132ddc4f1b9cbf94896

Contents?: true

Size: 1.13 KB

Versions: 3

Compression:

Stored size: 1.13 KB

Contents

require "neutral/engine"

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

require "neutral/engine"
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

3 entries across 3 versions & 1 rubygems

Version Path
neutral-0.0.6 lib/neutral.rb
neutral-0.0.5 lib/neutral.rb
neutral-0.0.4 lib/neutral.rb