Sha256: 5b20f1aabeefc139c00eea00d1ad788d642ebbfc086a7a5bfe6e4ae757865be1
Contents?: true
Size: 628 Bytes
Versions: 9
Compression:
Stored size: 628 Bytes
Contents
require File.join(File.dirname(__FILE__), "../generators_support") class ControllerGenerator < RubiGen::Base include GeneratorsSupport default_options :author => nil attr_reader :name def initialize(runtime_args, runtime_options = {}) super usage if args.empty? @name = args.shift extract_options end def manifest record do |m| build_controller_templates(m) end end protected def banner <<-EOS Creates a RuGUI controller. USAGE: script/generate controller YOUR_CONTROLLER_NAME EOS end def add_options!(opts) controller_add_options!(opts) end end
Version data entries
9 entries across 9 versions & 2 rubygems