lib/facet/symbol/to_const.rb in facets-0.7.2 vs lib/facet/symbol/to_const.rb in facets-0.9.0

- old
+ new

@@ -1,16 +2 @@ -require 'facet/string/to_const' -class Symbol - # Get a constant by a given symbol name. - # - # require 'facet/symbol/to_const' - # - # :Class.to_const #=> Class - # - # Note this method is not as verstile as it should be, - # since it can not access contants relative to the current - # execution context. But without a binding_of_caller that - # does not seem possible. - def to_const - to_s.to_const - end -end +require 'nano/symbol/to_const.rb' \ No newline at end of file