Method: RubyLexer::StringToken#append
- Defined in:
- lib/rubylexer/token.rb
#append(glob) ⇒ Object
384 385 386 387 388 389 390 391 392 |
# File 'lib/rubylexer/token.rb', line 384 def append(glob) #assert @elems.last.kind_of?(String) case glob when String,Integer then append_str! glob when RubyCode then append_code! glob else raise "bad string contents: #{glob}, a #{glob.class}" end #assert @elems.last.kind_of?(String) end |