Module: RubiGen::Options

Included in:
Base, Scripts::Base
Defined in:
lib/rubigen/options.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#optionsObject

Each instance has an options hash that’s populated by #parse.



48
49
50
# File 'lib/rubigen/options.rb', line 48

def options
  @options ||= {}
end

Class Method Details

.included(base) ⇒ Object



5
6
7
8
9
10
11
12
13
# File 'lib/rubigen/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