Method: UnitSplit::CLI.dispatch_unit
- Defined in:
- lib/unit_split/cli.rb
.dispatch_unit(unit_type) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/unit_split/cli.rb', line 47 def dispatch_unit(unit_type) case unit_type when :second return UnitSplit::Unit::Second when :byte return UnitSplit::Unit::Byte when :japanese return UnitSplit::Unit::JapaneseNumber else return nil end end |