module Loco

Constants

VERSION

Public Class Methods

debug(obj) click to toggle source

TODO: Determine if logging should happen based on environment

# File lib/motion-loco/convenience_methods.rb, line 4
def self.debug(obj)
  ap obj
end
t(name, *args) click to toggle source
# File lib/motion-loco/convenience_methods.rb, line 8
def self.t(name, *args)
  if args
    format = NSBundle.mainBundle.localizedStringForKey(name, value:nil, table:nil)
    format % args
  else
    NSBundle.mainBundle.localizedStringForKey(name, value:nil, table:nil)
  end
end