Module: Declarative::Inspect
- Defined in:
- lib/declarative/testing.rb
Defined Under Namespace
Modules: Schema
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
13 14 15 16 17 18 19 20 |
# File 'lib/declarative/testing.rb', line 13 def inspect string = super if is_a?(Proc) elements = string.split("/") string = "#{elements.first}#{elements.last}" end string.gsub(/0x\w+/, "") end |