rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

App::Persistence["something"]'s `||=` unexpected return `true` #372

Closed marocchino closed 8 years ago

marocchino commented 10 years ago
App::Persistence["date"]
# => nil

def install_date
   App::Persistence["date"] ||= NSDate.date
end

install_date
# => true

install_date
# => 2014-05-07 15:19:45 +0900

Is there any reason first result is true?