Class: Kreegerator::IOS

Inherits:
Object
  • Object
show all
Extended by:
Renderable
Defined in:
lib/kreegerator/ios.rb

Class Method Summary collapse

Methods included from Renderable

render

Class Method Details

.listObject



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.expand_path path}."
  render_headers_and_implementations 'view_controller', name, {}, path
end