Permalink
Browse files

Use Ruby convention of no explicit return keyword

  • Loading branch information...
1 parent 7c799cd commit 6ec936801b5cd82b811f962acfa5dc3c57e2b2b1 @andyw8 andyw8 committed May 12, 2012
@@ -7,7 +7,7 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window.rootViewController = UINavigationController.alloc.initWithRootViewController(tabbar)
@window.rootViewController.wantsFullScreenLayout = true
@window.makeKeyAndVisible
- return true
+ true
end
def beer_details_controller
@@ -28,7 +28,7 @@ def tableView(tableView, cellForRowAtIndexPath:indexPath)
beer = Beer::All[indexPath.row]
cell.textLabel.text = beer.title
- return cell
+ cell
end
def tableView(tableView, accessoryButtonTappedForRowWithIndexPath:indexPath)
@@ -37,7 +37,7 @@ def mapView(mapView, viewForAnnotation:beer)
button.addTarget(self, action: :'showDetails:', forControlEvents:UIControlEventTouchUpInside)
view.rightCalloutAccessoryView = button
end
- return view
+ view
end
def showDetails(sender)
@@ -4,6 +4,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window.rootViewController = HelloViewController.alloc.init
@window.rootViewController.wantsFullScreenLayout = true
@window.makeKeyAndVisible
- return true
+ true
end
end
@@ -6,6 +6,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window = UIWindow.alloc.initWithFrame(UIScreen.mainScreen.bounds)
@window.rootViewController = nav
@window.makeKeyAndVisible
- return true
+ true
end
end
@@ -4,6 +4,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window.rootViewController = MustacheViewController.alloc.init
@window.rootViewController.wantsFullScreenLayout = true
@window.makeKeyAndVisible
- return true
+ true
end
end
@@ -4,6 +4,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window.rootViewController = PaintViewController.alloc.init
@window.rootViewController.wantsFullScreenLayout = true
@window.makeKeyAndVisible
- return true
+ true
end
end
@@ -4,6 +4,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window.rootViewController = UINavigationController.alloc.initWithRootViewController(ImageCompositionController.alloc.init)
@window.rootViewController.wantsFullScreenLayout = true
@window.makeKeyAndVisible
- return true
+ true
end
end
@@ -4,6 +4,6 @@ def application(application, didFinishLaunchingWithOptions:launchOptions)
@window.rootViewController = TweetsController.alloc.initWithStyle(UITableViewStylePlain)
@window.rootViewController.wantsFullScreenLayout = true
@window.makeKeyAndVisible
- return true
+ true
end
end

0 comments on commit 6ec9368

Please sign in to comment.