Created
March 1, 2016 20:32
-
-
Save anonymous/ae3690bab83fcc69f5bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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