cutter 0.5.7 → 0.5.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cutter/inspection.rb +8 -1
- metadata +2 -2
data/lib/cutter/inspection.rb
CHANGED
@@ -33,7 +33,8 @@ class Object
|
|
33
33
|
options = options.extract_options!
|
34
34
|
level = options[:level]
|
35
35
|
_caller = caller
|
36
|
-
|
36
|
+
|
37
|
+
self_inspection = eval('self.inspect', _binding) if options[:inspect]
|
37
38
|
# Basic info
|
38
39
|
puts %|\nmethod: `#{eval('__method__', _binding)}'|
|
39
40
|
puts %| called from class: #{eval('self.class', _binding)}|
|
@@ -44,6 +45,12 @@ class Object
|
|
44
45
|
puts %| #{lv}: #{eval(lv.to_s, _binding)}|
|
45
46
|
end if lvb
|
46
47
|
|
48
|
+
# Self inspection
|
49
|
+
begin
|
50
|
+
puts %| self inspection:|
|
51
|
+
puts %| #{self_inspection}|
|
52
|
+
end if self_inspection
|
53
|
+
|
47
54
|
# Caller methods chain
|
48
55
|
begin
|
49
56
|
puts %| caller methods: |
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: cutter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.5.
|
5
|
+
version: 0.5.8
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- stanislaw
|
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
110
110
|
requirements:
|
111
111
|
- - ">="
|
112
112
|
- !ruby/object:Gem::Version
|
113
|
-
hash: -
|
113
|
+
hash: -716599551
|
114
114
|
segments:
|
115
115
|
- 0
|
116
116
|
version: "0"
|