Class: GlobalOptionsTasks

Inherits:
Thor
  • Object
show all
Defined in:
lib/thor/spec/thor_spec.rb

Instance Attribute Summary

Attributes inherited from Thor

#options

Instance Method Summary collapse

Methods inherited from Thor

[], convert_task_options, default_task, desc, group, group_name, #help, install_task, #invoke, invoke, map, maxima, method_options, opts, package_task, spec_task, start, subclass_files, subclasses, tasks

Constructor Details

#initialize(*args) ⇒ GlobalOptionsTasks

Returns a new instance of GlobalOptionsTasks.



72
73
74
# File 'lib/thor/spec/thor_spec.rb', line 72

def initialize(*args)
  super
end

Instance Method Details

#animal(type) ⇒ Object



78
79
80
# File 'lib/thor/spec/thor_spec.rb', line 78

def animal(type)
  [type, options]
end

#zooObject



83
84
85
# File 'lib/thor/spec/thor_spec.rb', line 83

def zoo
  options
end