module Roda::RodaPlugins::Json::ClassMethods

Attributes

json_result_classes[R]

The classes that should be automatically converted to json

Public Instance Methods

inherited(subclass) click to toggle source

Copy the json_result_classes into the subclass

Calls superclass method
# File lib/roda/plugins/json.rb, line 49
def inherited(subclass)
  super
  subclass.instance_variable_set(:@json_result_classes, json_result_classes.dup)
end