Module: NRB::Support::PackageTypeParser
- Defined in:
- lib/nrb/support/package_type_parser.rb
Instance Method Summary collapse
Instance Method Details
#parse_package_type(string, type_class: String) ⇒ Object
4 5 6 7 8 |
# File 'lib/nrb/support/package_type_parser.rb', line 4 def parse_package_type(string, type_class: String) return nil if string.nil? matched = match_package_type(string) return type_class.new(matched) if matched end |