Method: Faye::Grammar.string
- Defined in:
- lib/faye/protocol/grammar.rb
.string(item) ⇒ Object
21 22 23 24 |
# File 'lib/faye/protocol/grammar.rb', line 21 def self.string(item) return item.map(&method(:string)) * '' if Array === item String === item ? item : item.source.gsub(/^\^/, '').gsub(/\$$/, '') end |