Sha256: dcd3db3cc19453b7436c0f736bbbbcad4fb3933f526d858a8496089b0a12dbb6
Contents?: true
Size: 1.17 KB
Versions: 5
Compression:
Stored size: 1.17 KB
Contents
# -*- encoding : utf-8 -*- module Phrase class Config def client_version Phrase::CLIENT_VERSION end def auth_token @@auth_token = "" if !defined? @@auth_token or @@auth_token.nil? @@auth_token end def auth_token=(auth_token) @@auth_token = auth_token end def enabled @@enabled = true if !defined? @@enabled or @@enabled.nil? @@enabled end def enabled=(enabled) @@enabled = enabled end def backend @@backend ||= Backend::PhraseService.new end def backend=(backend) @@backend = backend end def prefix @@prefix ||= "{{__" end def prefix=(prefix) @@prefix = prefix end def suffix @@suffix ||= "__}}" end def suffix=(suffix) @@suffix = suffix end def js_host @@js_host ||= 'phraseapp.com' end def js_host=(js_host) @@js_host = js_host end def js_use_ssl @@js_use_ssl = true if !defined? @@js_use_ssl or @@js_use_ssl.nil? @@js_use_ssl end def js_use_ssl=(js_use_ssl) @@js_use_ssl = js_use_ssl end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
phrase-0.1.4 | lib/phrase/config.rb |
phrase-0.1.3 | lib/phrase/config.rb |
phrase-0.1.2 | lib/phrase/config.rb |
phrase-0.1.1 | lib/phrase/config.rb |
phrase-0.1 | lib/phrase/config.rb |