module Minutely::StringAsJson

A mixin to use to_s as JSON representation of the including object.

Public Instance Methods

as_json(_options = nil) click to toggle source

The JSON representation of the object as Hash. Conventionally used by common serializers.

@return [Hash]

# File lib/minutely/string_as_json.rb, line 12
def as_json(_options = nil)
  to_s
end