lib/abstractivator/enum.rb in abstractivator-0.0.30 vs lib/abstractivator/enum.rb in abstractivator-0.0.31

- old
+ new

@@ -13,9 +13,17 @@ def inspect "#<#{self.class.name} #{value.inspect}>" end alias_method :to_s, :inspect + def as_json(_opts={}) + value.as_json + end + + def to_json + value.to_json + end + def self.included(base) base.extend ClassMethods end module ClassMethods