Sha256: 9af21f76611e66e723d8bb9adb1ed05ade0ae21f2fce97f9a20b817178af6e5f

Contents?: true

Size: 201 Bytes

Versions: 10

Compression:

Stored size: 201 Bytes

Contents

module Rbexy
  class OutputBuffer < String
    def <<(content)
      value = content.is_a?(Array) ? content.join : content
      super([nil, false].include?(value) ? "" : value.to_s)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
rbexy-0.2.3 lib/rbexy/output_buffer.rb
rbexy-0.2.2 lib/rbexy/output_buffer.rb
rbexy-0.2.1 lib/rbexy/output_buffer.rb
rbexy-0.2.0 lib/rbexy/output_buffer.rb
rbexy-0.1.5 lib/rbexy/output_buffer.rb
rbexy-0.1.4 lib/rbexy/output_buffer.rb
rbexy-0.1.3 lib/rbexy/output_buffer.rb
rbexy-0.1.2 lib/rbexy/output_buffer.rb
rbexy-0.1.1 lib/rbexy/output_buffer.rb
rbexy-0.1.0 lib/rbexy/output_buffer.rb