current_folder = File.expand_path('../', __FILE__) Dir["#{current_folder}/i2x/*.rb"].each {|f| require f} module I2X class Config attr_accessor :access_token attr_accessor :host def self.set_host host host << '/' unless host.ends_with?('/') @@host = host end def self.set_access_token api_key @@access_token = api_key end end end