Sha256: eaa7bb2813b2d20a8dcb8924a3331dbd4a0b3fb7e1adc1dca7fab1feaed7e5ff

Contents?: true

Size: 185 Bytes

Versions: 10

Compression:

Stored size: 185 Bytes

Contents

module FbGraph2
  module Util
    module_function

    def as_identifier(object)
      if object.respond_to? :id
        object.id
      else
        object
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fb_graph2-0.7.4 lib/fb_graph2/util.rb
fb_graph2-0.7.3 lib/fb_graph2/util.rb
fb_graph2-0.7.2 lib/fb_graph2/util.rb
fb_graph2-0.7.1 lib/fb_graph2/util.rb
fb_graph2-0.7.0 lib/fb_graph2/util.rb
fb_graph2-0.6.2 lib/fb_graph2/util.rb
fb_graph2-0.6.1 lib/fb_graph2/util.rb
fb_graph2-0.6.0 lib/fb_graph2/util.rb
fb_graph2-0.5.3 lib/fb_graph2/util.rb
fb_graph2-0.5.2 lib/fb_graph2/util.rb