Module: Loco

Defined in:
lib/motion-loco/proc.rb,
lib/motion-loco/model.rb,
lib/motion-loco/views.rb,
lib/motion-loco/adapter.rb,
lib/motion-loco/version.rb,
lib/motion-loco/resizable.rb,
lib/motion-loco/controller.rb,
lib/motion-loco/observable.rb,
lib/motion-loco/persistable.rb,
lib/motion-loco/associatable.rb,
lib/motion-loco/record_array.rb,
lib/motion-loco/rest_adapter.rb,
lib/motion-loco/sqlite_adapter.rb,
lib/motion-loco/text_alignable.rb,
lib/motion-loco/fixture_adapter.rb,
lib/motion-loco/view_controller.rb,
lib/motion-loco/array_controller.rb,
lib/motion-loco/convenience_methods.rb

Defined Under Namespace

Modules: Associatable, Observable, Persistable, Resizable, TextAlignable, UI Classes: Adapter, ArrayController, Controller, FixtureAdapter, Model, RESTAdapter, RecordArray, SQLiteAdapter, ViewController

Constant Summary collapse

VERSION =
'0.3.0'

Class Method Summary collapse

Class Method Details

.debug(obj) ⇒ Object

TODO: Determine if logging should happen based on environment



4
5
6
# File 'lib/motion-loco/convenience_methods.rb', line 4

def self.debug(obj)
  ap obj
end

.t(name, *args) ⇒ Object



8
9
10
11
12
13
14
15
# 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