Method: Exfuz::Query#add
- Defined in:
- lib/exfuz/query.rb
#add(ch_or_chs) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/exfuz/query.rb', line 23 def add(ch_or_chs) if ch_or_chs.instance_of?(Array) ch_or_chs.each do |ch| insert_at_caret(ch) right end elsif ch_or_chs.instance_of?(String) insert_at_caret(ch_or_chs) right end end |