Skip to content

Instantly share code, notes, and snippets.

Created March 1, 2016 20:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ae3690bab83fcc69f5bc to your computer and use it in GitHub Desktop.
Save anonymous/ae3690bab83fcc69f5bc to your computer and use it in GitHub Desktop.
require 'plist'
class ClassOne
def initialize
end
def do_something
h = {}
h['key'] = 'value'
h.to_plist # the 'to_plist' method from 'cfpropertylist' is getting invoked.. I don't want that
end
end
require './test1'
require 'cfpropertylist'
c = ClassOne.new
c.do_something
plist = CFPropertyList::List.new(:data => 'some_data')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment