module Selectors def selector_for(string) if string =~ /^"(.*)"$/ $1 else raise "Invalid selector: #{string}" end end end World(Selectors)