Class: Aska::Rules

Inherits:
Array show all
Defined in:
lib/poolparty/aska/aska.rb

Instance Method Summary collapse

Methods inherited from Array

#collect_with_index, #get_named, #nice_runnable, #respec_string, #runnable, #select_with_hash, #to_os, #to_string, #wrapping_next

Instance Method Details

#to_sObject



137
138
139
# File 'lib/poolparty/aska/aska.rb', line 137

def to_s
  self.map {|r| v=r.keys.first;"'#{v} #{r[v][0]} #{r[v][1]}'"}.join(", ")
end