Sha256: 6b454e0248708d8d42ef1536ac1a554e83bbf575efae3aade25ec5fbb0a26d3f
Contents?: true
Size: 641 Bytes
Versions: 1
Compression:
Stored size: 641 Bytes
Contents
require "maktoub/engine" module Maktoub class << self attr_accessor :from, :twitter_url, :facebook_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.0.1 | lib/maktoub.rb |