Sha256: 1cbda3f9858d216981b23566d665c6ccbfc5e542524fcd3867901d30db3d5939
Contents?: true
Size: 481 Bytes
Versions: 6
Compression:
Stored size: 481 Bytes
Contents
require 'set' class Thor # A {Thor::Option} that has an additional {#groups} attribute storing a # set of group symbols that the option is a part of. # class SharedOption < Option # Shared option groups this option belongs to. # # @return [Set<Symbol>] # attr_reader :groups # # def initialize name, **options super name, options @groups = Set.new [*options[:groups]].map( &:to_sym ) end end end
Version data entries
6 entries across 6 versions & 1 rubygems