cutter 0.5.9 → 0.5.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/cutter/inspection.rb +8 -2
  2. metadata +3 -3
@@ -40,11 +40,17 @@ class Object
40
40
  puts %| called from class: #{eval('self.class', _binding)}|
41
41
 
42
42
  lvb = eval('local_variables',_binding)
43
- puts %| variables: #{"[]" if lvb.empty?}|
43
+ puts %| local_variables: #{"[]" if lvb.empty?}|
44
44
  lvb.map do |lv|
45
45
  puts %| #{lv}: #{eval(lv.to_s, _binding)}|
46
46
  end if lvb
47
47
 
48
+ ivb = eval('instance_variables',_binding)
49
+ puts %| instance_variables: #{"[]" if ivb.empty?}|
50
+ ivb.map do |lv|
51
+ puts %| #{lv}: #{eval(lv.to_s, _binding)}|
52
+ end if ivb
53
+
48
54
  # Self inspection
49
55
  begin
50
56
  puts %| self inspection:|
@@ -61,7 +67,7 @@ class Object
61
67
 
62
68
  puts "\n"
63
69
  # Yield mysterious things if they exist in block.
64
- yield if block_given?
70
+ yield if block_given?
65
71
  end
66
72
 
67
73
  def caller_method_name(level = 1)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: cutter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.5.9
5
+ version: 0.5.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - stanislaw
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-23 00:00:00 +03:00
13
+ date: 2011-07-29 00:00:00 +03:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -110,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
110
  requirements:
111
111
  - - ">="
112
112
  - !ruby/object:Gem::Version
113
- hash: 554901585
113
+ hash: 635276081
114
114
  segments:
115
115
  - 0
116
116
  version: "0"