Class: Theme::Conversions::BaseGlob
- Inherits:
-
Object
- Object
- Theme::Conversions::BaseGlob
- Defined in:
- lib/project_types/theme/conversions/base_glob.rb
Direct Known Subclasses
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 |
.options ⇒ Object
22 23 24 |
# File 'lib/project_types/theme/conversions/base_glob.rb', line 22 def 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 |