Module: Declarative::Inspect

Defined in:
lib/declarative/testing.rb

Defined Under Namespace

Modules: Schema

Instance Method Summary collapse

Instance Method Details

#inspectObject



15
16
17
18
19
20
21
22
# File 'lib/declarative/testing.rb', line 15

def inspect
  string = super
  if is_a?(Proc)
    elements = string.split('/')
    string = "#{elements.first}#{elements.last}"
  end
  string.gsub(/0x\w+/, '')
end