Sha256: d4ab95cdd82213fb01db93f27da6df4e3042839914e8e065b8d3a1493f10cbe0
Contents?: true
Size: 380 Bytes
Versions: 3
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true module Hahamut module Attribute # Base value class Base attr_reader :before_cast def initialize(value) @before_cast = value end def value @value ||= before_cast end def as_json value end def to_json(_obj = nil) as_json.to_json end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hahamut-0.1.2 | lib/hahamut/attribute/base.rb |
hahamut-0.1.1 | lib/hahamut/attribute/base.rb |
hahamut-0.1.0 | lib/hahamut/attribute/base.rb |