Module: Declarative
- Defined in:
- lib/declarative.rb,
lib/declarative/schema.rb,
lib/declarative/testing.rb,
lib/declarative/version.rb,
lib/declarative/deep_dup.rb,
lib/declarative/defaults.rb,
lib/declarative/heritage.rb,
lib/declarative/variables.rb,
lib/declarative/definitions.rb
Defined Under Namespace
Modules: DeepDup, Inspect, Schema Classes: Defaults, Definitions, Heritage, Variables
Constant Summary collapse
- VERSION =
"0.0.20"
Class Method Summary collapse
Class Method Details
.Inspect(obj) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/declarative/testing.rb', line 4 def self.Inspect(obj) string = obj.inspect if obj.is_a?(Proc) elements = string.split('/') string = "#{elements.first}#{elements.last}" end string.gsub(/0x\w+/, '') end |