Sha256: becead71b74d5aa0ecc391e440b9816ee7e095dc62bdb9317c65727cc3792cfa
Contents?: true
Size: 215 Bytes
Versions: 3
Compression:
Stored size: 215 Bytes
Contents
module Natour module ErrnoUtils module_function def split_message(error) tokens = error.message.split(/ @ | - /, 3) tokens.insert(1, *[nil] * (3 - tokens.size)) tokens end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
natour-0.12.0 | lib/natour/utils/errno_utils.rb |
natour-0.11.0 | lib/natour/utils/errno_utils.rb |
natour-0.10.0 | lib/natour/utils/errno_utils.rb |