Sha256: 8b56458ef7ee4405c4208c0901a4a5871979f16c594f7d69bd7ede0ae6a07b46
Contents?: true
Size: 297 Bytes
Versions: 1
Compression:
Stored size: 297 Bytes
Contents
# frozen_string_literal: true require 'json' module Cosensee # parse a hash tag HashTag = Data.define(:content, :raw) do alias_method :to_s, :raw alias_method :anchor, :content 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/hash_tag.rb |