Module: Rsec::Prim
Overview
primitive base
Instance Method Summary collapse
Instance Method Details
#sign_strategy_to_pattern(sign_strategy) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/rsec/parsers/prim.rb', line 5 def sign_strategy_to_pattern sign_strategy case sign_strategy when 3; '[\+\-]?' when 2; '\+?' when 1; '\-?' when 0; '' end end |