Sha256: d4abfe2ca8aebaeb0a70c593a6296caad8efb6df11ff09463d477150f2179e1c

Contents?: true

Size: 292 Bytes

Versions: 4

Compression:

Stored size: 292 Bytes

Contents

class Symbol

  def get_default
    NSUserDefaults.standardUserDefaults.objectForKey(self)
  end

  def set_default val
    NSUserDefaults.standardUserDefaults.setObject(val, forKey:self)
  end

  def remove_default
    NSUserDefaults.standardUserDefaults.removeObjectForKey(self)
  end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sugarcube-0.2.3 lib/sugarcube/defaults.rb
sugarcube-0.2.2 lib/sugarcube/defaults.rb
sugarcube-0.2.1 lib/sugarcube/defaults.rb
sugarcube-0.2.0 lib/sugarcube/defaults.rb