require 'mactag/railtie'
require 'mactag/config'
require 'mactag/builder'
require 'mactag/dsl'
require 'mactag/tag'

module Mactag
  autoload :Bundler, 'bundler'
  autoload :Rails, 'rails'

  def self.warn(message)
    $stderr.puts(message)
  end
end

def Mactag(&block)
  Mactag::Builder.generate(&block)
end

require 'mactag/railtie'
require 'mactag/config'
require 'mactag/builder'
require 'mactag/dsl'
require 'mactag/tag'

module Mactag
  autoload :Bundler, 'bundler'
  autoload :Rails, 'rails'

  def self.warn(message)
    STDERR.puts(message)
  end
end

def Mactag(&block)
  Mactag::Builder.generate(&block)
end

Use constant instead of global variable.
Use constant instead of global variable.
