explore_rb 1.0.0 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 90cd8245889b92d657f766767017f992d81141af
4
- data.tar.gz: 2f5ff08ba0d7981d6249d5db93b695759be85f35
3
+ metadata.gz: ea82e3992fe7e42e11bc80a5bedab92e5d638fc0
4
+ data.tar.gz: 9d07b20067af72a8779f46a00fbbe6804e358900
5
5
  SHA512:
6
- metadata.gz: 3f3e6ad9a15891b766ce2e4e809e39e0383a7c0fb059cc7326a356c72204642dd717ab9fdb4d0a3df9f0c86df6b83d796902704c8daeaea79ecf1e7c02c89df8
7
- data.tar.gz: 75121b4ed58be433ef85efd582064b737cf76766e91d360baa049f4cf5d10d5a43eb6b9094503165be6107b53ae65e1f411e445f2775c710f95f0c2d897670df
6
+ metadata.gz: f0b2d49828659513fb111a1fc37b17f942333b884bd57bf7eef8722146b88862ff1c6c16eb03f237060aa526a5a4084c635a61d7394aacd0f0d986664da28688
7
+ data.tar.gz: f9f9ef6614a6082bb1a0a110763b3e50b3a40911f8f503a17968f175947ad068901b81ffa3e92682325ff65e79d17d0643d25078d8a38f46568401a129304ac2
data/README.md CHANGED
@@ -43,6 +43,12 @@ As you might expect, list gems with:
43
43
 
44
44
  $ gems
45
45
 
46
+ ### Showing the load path
47
+
48
+ Get an array (rather than a reference) of the current load paths with:
49
+
50
+ $ load_paths
51
+
46
52
  ### Listing Symbols
47
53
 
48
54
  You can get an array of all existing symbols with:
@@ -7,7 +7,7 @@ module ExploreRb
7
7
  puts "Use the following commands to look around:"
8
8
  puts " classes, objects, get_objects, symbols, gems,"
9
9
  puts " local_variables, draw_this, start_garbage_collection"
10
- puts " stop_garbage_collection, help"
10
+ puts " stop_garbage_collection, load_paths, help"
11
11
  end
12
12
 
13
13
  def classes
@@ -52,6 +52,12 @@ module ExploreRb
52
52
  GC.stress=false
53
53
  end
54
54
 
55
+ def load_paths
56
+ # $: returns a reference.
57
+ # For demo purposes we want a value.
58
+ Array.new $:
59
+ end
60
+
55
61
  end
56
62
 
57
63
  # add exploreRb methods to the main object
@@ -1,3 +1,3 @@
1
1
  module ExploreRb
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: explore_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williamson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-17 00:00:00.000000000 Z
11
+ date: 2013-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: traceur