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/savable.rb,
lib/motion-loco/version.rb,
lib/motion-loco/resizable.rb,
lib/motion-loco/controller.rb,
lib/motion-loco/observable.rb,
lib/motion-loco/table_view.rb,
lib/motion-loco/record_array.rb,
lib/motion-loco/rest_adapter.rb,
lib/motion-loco/fixture_adapter.rb,
lib/motion-loco/view_controller.rb,
lib/motion-loco/convenience_methods.rb
Defined Under Namespace
Modules: Observable, Resizable, Savable Classes: Adapter, Button, Controller, DatePicker, FixtureAdapter, ImageView, Label, Model, PickerView, ProgressView, RESTAdapter, RecordArray, ScrollView, Slider, TableView, TableViewCell, TextView, Toolbar, View, ViewController, WebView
Constant Summary collapse
- VERSION =
'0.1.1'
Class Method Summary collapse
-
.debug(obj) ⇒ Object
TODO: Determine if logging should happen based on environment.
- .t(name, *args) ⇒ Object
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 |