Method: PTJ::Parser::PassHashOnly#parse_line
- Defined in:
- lib/ptj/parser/fileparser/passhashonly.rb
#parse_line(line) ⇒ Object
Expecting the following format: pass, hash pass, hash pass, hash
16 17 18 19 20 21 22 |
# File 'lib/ptj/parser/fileparser/passhashonly.rb', line 16 def parse_line(line) if line =~ /^(\S+),\s(\S+)/ pass = $~[1] hash = $~[2] end {:mypass => pass, :myhash => hash} end |