Module: Ore::Options::ClassMethods

Defined in:
lib/ore/options.rb

Overview

Since:

  • 0.9.0

Instance Method Summary collapse

Instance Method Details

#generator_option(name, options = {}) ⇒ Object

Defines a generator option.

Parameters:

  • name (Symbol)

    The name of the option.

  • options (Hash{Symbol => Object}) (defaults to: {})

    The Thor options of the option.

Since:

  • 0.9.0



58
59
60
# File 'lib/ore/options.rb', line 58

def generator_option(name,options={})
  class_option(name,options.merge(:default => Options.defaults[name]))
end