Sha256: 0fa1074871efa686c683f2782aefb1d89c2e78e34499b33105af16de2d3f15f8
Contents?: true
Size: 296 Bytes
Versions: 1
Compression:
Stored size: 296 Bytes
Contents
# frozen_string_literal: true require 'json' module Cosensee module Node # parse a line Code = Data.define(:content, :raw) do alias_method :to_s, :raw 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/code.rb |