Sha256: 8aa9116832e1281834b26dabe3b62d74ebeba78e64116f881c0918adaf47dd9e
Contents?: true
Size: 368 Bytes
Versions: 1
Compression:
Stored size: 368 Bytes
Contents
# frozen_string_literal: true require 'json' module Cosensee # for normal Text Indent = Data.define(:content, :raw) do def initialize(content: '', raw: '') @level = content.size super end attr_reader :level alias_method :to_s, :raw def to_obj content end def to_json(*) to_obj.to_json(*) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
cosensee-0.6.0 | lib/cosensee/indent.rb |