Module: Declarative::Inspect
- Defined in:
- lib/declarative/testing.rb
Defined Under Namespace
Modules: Schema
Instance Method Summary collapse
Instance Method Details
#inspect ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/declarative/testing.rb', line 3 def inspect string = super if is_a?(Proc) elements = string.split("/") string = "#{elements.first}#{elements.last}" end string.gsub(/0x\w+/, "") end |