Module: HashEngine::AddError
- Included in:
- Transform
- Defined in:
- lib/hash_engine/add_error.rb
Instance Method Summary collapse
Instance Method Details
#add_error(error_array, long, short) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/hash_engine/add_error.rb', line 4 def add_error(error_array, long, short) if error_array.first == :long error_array.push long else error_array.push short end end |