lib/cosensee/bracket_serializer.rb in cosensee-0.6.0 vs lib/cosensee/bracket_serializer.rb in cosensee-0.8.0
- old
+ new
@@ -3,10 +3,12 @@
require 'json'
module Cosensee
# serializer for brackets
module BracketSerializer
- def to_s = raw
+ def to_s
+ content.map(&:to_s).join
+ end
def to_obj
unparsed = content.map do |elem|
if elem.is_a?(String)
elem