Sha256: 21a7234dc31a8d65e9b7672c07203aee0da04370a839f3a801540f6aaf96b184
Contents?: true
Size: 424 Bytes
Versions: 1
Compression:
Stored size: 424 Bytes
Contents
# frozen_string_literal: true require 'json' module Cosensee module Node # for quote Quote = Data.define(:content, :raw, :mark) do def replace_content(new_content) Quote.new(content: new_content, raw:, mark:) end def to_s content.map(&:to_s).join end def to_obj content end def to_json(*) to_obj.to_json(*) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.8.0 | lib/cosensee/node/quote.rb |