module Typekitable::Tokenizer
Constants
- TOKEN_STORE
Public Class Methods
get_token()
click to toggle source
# File lib/typekitable/tokenizer.rb, line 15 def self.get_token return unless has_token? File.open(TOKEN_STORE, 'r') do |file| file.gets end end
has_token?()
click to toggle source
# File lib/typekitable/tokenizer.rb, line 11 def self.has_token? File.exist?(TOKEN_STORE) end
store(token)
click to toggle source
# File lib/typekitable/tokenizer.rb, line 5 def self.store(token) File.open(TOKEN_STORE, 'w') do |file| file.write(token) end end