Module: Apimaster::Generators::Options
- Included in:
- Base, Scripts::Base
- Defined in:
- lib/apimaster/generators/options.rb
Defined Under Namespace
Modules: ClassMethods
Instance Attribute Summary collapse
-
#options ⇒ Object
Each instance has an options hash that’s populated by #parse.
Class Method Summary collapse
Instance Attribute Details
#options ⇒ Object
Each instance has an options hash that’s populated by #parse.
66 67 68 |
# File 'lib/apimaster/generators/options.rb', line 66 def @options ||= {} end |
Class Method Details
.included(base) ⇒ Object
5 6 7 8 9 10 11 12 13 |
# File 'lib/apimaster/generators/options.rb', line 5 def self.included(base) base.extend(ClassMethods) class << base if respond_to?(:inherited) alias_method :inherited_without_options, :inherited end alias_method :inherited, :inherited_with_options end end |