Sha256: cb79faea0c4785398bde29c530f5f0b35a33324f8a1ebbcb1f176b1639d01214

Contents?: true

Size: 144 Bytes

Versions: 2

Compression:

Stored size: 144 Bytes

Contents

module Liner
  module Serializable
    def as_json(*)
      to_h
    end

    def to_json(*args)
      as_json.to_json(*args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
liner-0.2.0 lib/liner/serializable.rb
liner-0.1.2 lib/liner/serializable.rb