Method: Thor::Base::SharedConcern.def_shared
- Defined in:
- lib/thor/base/shared_concern.rb
.def_shared(kind, name:, groups: nil, **options) ⇒ Object
69 70 71 72 73 74 75 76 |
# File 'lib/thor/base/shared_concern.rb', line 69 def def_shared kind, name:, groups: nil, ** this_class_shared_defs_ref << { name: name.to_sym, kind: kind.to_sym, groups: Set[*groups].freeze, options: .freeze, }.freeze end |