Method: Jebediah#processArray

Defined in:
lib/jebediah.rb

#processArray(arr) ⇒ Object

Processes arbitrary input formatted as an array



87
88
89
90
91
# File 'lib/jebediah.rb', line 87

def processArray(arr)
  return processString(arr[0]) if arr.length == 1
  return { :type => 'hash', :result => hashForPhrase(arr) } if arr.length == phraseLength
  return { :type => 'error' }
end