Sha256: 3deadedcd58409052442c73ee46e37895145232dc52d6da58a8b0528cd287d11

Contents?: true

Size: 678 Bytes

Versions: 1

Compression:

Stored size: 678 Bytes

Contents

require "maktoub/engine"

module Maktoub
  class << self
    attr_accessor :from,
                  :twitter_url,
                  :facebook_url,
                  :google_plus_url,
                  :subscription_preferences_url,
                  :logo,
                  :home_domain,
                  :app_name

    attr_writer :email_field, :name_field

    def email_field
      @email_field || :email
    end

    def name_field
      @name_field || :name
    end

    def subscribers
      @subscribers.call
    end

    def subscribers_extractor (&block)
      @subscribers = Proc.new &block
    end

    def home_url
      "http://" + home_domain
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
maktoub-0.1.0 lib/maktoub.rb