What’s RubyMotionWe can develop the iOS App and OSX Appwith ruby(MacRuby)We can write spec with bacon like a RSpecFully compile to machine code from ruby codeThe license is $199.99(renewal $99)
How To Create App・Create application window・Create view controller・Add label and button to view・Add button action
Create your project
Create applicationwindowIn Obj-C, The methods name are too long,but RubyMotion is expressing with selectorin MacRuby
Create view controllerIn loadView, we have toprepare for views(includes some button).With using BubbleWrapgem, we can add buttonaction like a `blocks`that literal is addedObj-C 2.0.And also, we can usemethod chain!!
Run your app!$ rake
How To Write SpecAlmost of all useraction can beworked out!(ex. tap, drag,pinch in/out...)We can check the values ofview and some instance values
Run your specs!$ rake specWhile running specs,the simulator actually worksautomatically. It’s pretty cool!