Sha256: b52b8ec447cd6e2522bcd1ae515ebcd9c03720dfa251f71415a61d8c99c59edc

Contents?: true

Size: 523 Bytes

Versions: 4

Compression:

Stored size: 523 Bytes

Contents

require "pathname"
require "eve_app/engine"

module EveApp
  autoload :EveCentral, 'eve_app/eve_central'
  autoload :ItemParser, 'eve_app/item_parser'
  autoload :SDE,        'eve_app/sde'
  autoload :XmlApi,     'eve_app/xml_api'

  class << self
    def root
      @root ||= Pathname.new(File.expand_path("../../", __FILE__))
    end

    def table_name_prefix
      @_table_name_prefix ||= begin
        prefix = EveApp::SDE.config.table_prefix.presence
        prefix ? "#{prefix}_" : super
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
eve_app-0.1.34 lib/eve_app.rb
eve_app-0.1.33 lib/eve_app.rb
eve_app-0.1.32 lib/eve_app.rb
eve_app-0.1.31 lib/eve_app.rb