lib/tap/support/constant.rb in tap-0.11.1 vs lib/tap/support/constant.rb in tap-0.12.0

- old
+ new

@@ -19,10 +19,11 @@ # Tries to find a declared constant under base with the specified # const_name. When a constant is missing, constantize yields # the current base and any non-existant constant names the block, # if given, or raises a NameError. The block is expected - # to return the proper constant. + # to return the desired constant; in the example 'Non::Existant' + # is effectively mapping to ConstName. # # module ConstName; end # # Constant.constantize('ConstName') # => ConstName # Constant.constantize('Non::Existant') { ConstName } # => ConstName \ No newline at end of file