module Declarative::Definitions::Inspect

Public Instance Methods

get(*) click to toggle source
Calls superclass method
# File lib/declarative/testing.rb, line 44
def get(*)
  super.extend(Declarative::Inspect)
end
inspect() click to toggle source
Calls superclass method
# File lib/declarative/testing.rb, line 31
def inspect
  each { |dfn|
    dfn.extend(Declarative::Inspect)

    if dfn[:nested] && dfn[:nested].is_a?(Declarative::Schema::DSL)
      dfn[:nested].extend(Declarative::Inspect::Schema)
    else
      dfn[:nested].extend(Declarative::Definitions::Inspect) if dfn[:nested]
    end
  }
  super
end