Sha256: 5026a802d8bfe6ad9bdf84ecb8713ebf010a8bc6666d3149ba20eb209ba83d6b
Contents?: true
Size: 824 Bytes
Versions: 1
Compression:
Stored size: 824 Bytes
Contents
require 'fb_graph' require 'facemock/config' require 'facemock/fb_graph/user' require 'facemock/fb_graph/application' module Facemock module FbGraph extend self def on(options={}) if ::FbGraph != Facemock::FbGraph Object.const_set(:SourceFbGraph, ::FbGraph) Object.send(:remove_const, :FbGraph) if Object.constants.include?(:FbGraph) Object.const_set(:FbGraph, Facemock::FbGraph) end true end def off if ::FbGraph == Facemock::FbGraph Object.send(:remove_const, :FbGraph) if Object.constants.include?(:FbGraph) Object.const_set(:FbGraph, ::SourceFbGraph) Object.send(:remove_const, :SourceFbGraph) if Object.constants.include?(:FbGraph) end true end class InvalidToken < ::FbGraph::InvalidToken; end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
facemock-0.0.5 | lib/facemock/fb_graph.rb |