Class: Kreegerator::IOS
- Inherits:
-
Object
- Object
- Kreegerator::IOS
- Extended by:
- Renderable
- Defined in:
- lib/kreegerator/ios.rb
Class Method Summary collapse
- .list ⇒ Object
- .view_controller(path, name) ⇒ Object (also: vc, viewcontroller, controller)
Methods included from Renderable
Class Method Details
.list ⇒ Object
8 9 10 |
# File 'lib/kreegerator/ios.rb', line 8 def list puts methods(false).select { |m| m != :list }.join("\n") end |
.view_controller(path, name) ⇒ Object Also known as: vc, viewcontroller, controller
12 13 14 15 |
# File 'lib/kreegerator/ios.rb', line 12 def view_controller(path, name) puts "Generating file for #{name} in #{File. path}." render_headers_and_implementations 'view_controller', name, {}, path end |