Right now encoding an alphabet raises the following error trace:
Traceback (most recent call last): 6: from /usr/bin/irb:11:in'
5: from (irb):5
4: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:29:in encode' 3: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:24:into_segment'
2: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:24:in map' 1: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:24:inblock in to_segment'
NoMethodError (undefined method scan' for nil:NilClass)
Display a better error
Right now encoding an alphabet raises the following error trace:'
5: from (irb):5
4: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:29:in
Traceback (most recent call last): 6: from /usr/bin/irb:11:in
encode' 3: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:24:in
to_segment' 2: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:24:inmap' 1: from /var/lib/gems/2.5.0/gems/seven_segment-0.1.0/lib/seven_segment.rb:24:in
block in to_segment' NoMethodError (undefined methodscan' for nil:NilClass)
Display a better error