Class: Theme::Conversions::BaseGlob

Inherits:
Object
  • Object
show all
Defined in:
lib/project_types/theme/conversions/base_glob.rb

Direct Known Subclasses

IgnoreGlob, IncludeGlob

Class Method Summary collapse

Class Method Details

.convert(parser) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/project_types/theme/conversions/base_glob.rb', line 11

def convert(parser)
  argv = parser.default_argv
  values = []

  option_indexes(argv).each do |option_index|
    values += option_values(argv, parser, option_index)
  end

  values
end

.optionsObject



22
23
24
# File 'lib/project_types/theme/conversions/base_glob.rb', line 22

def options
  raise "`#{self.class.name}#options` must be defined"
end

.register(parser) ⇒ Object



7
8
9
# File 'lib/project_types/theme/conversions/base_glob.rb', line 7

def register(parser)
  parser.accept(self) { |_val| convert(parser) }
end