lib/ronin/class_methods.rb in ronin-1.0.0.pre4 vs lib/ronin/class_methods.rb in ronin-1.0.0.rc1
- old
+ new
@@ -16,10 +16,27 @@
# You should have received a copy of the GNU General Public License
# along with Ronin. If not, see <http://www.gnu.org/licenses/>.
#
module Ronin
+ #
+ # Class methods that are included when {Ronin} is included.
+ #
module ClassMethods
+ #
+ # Catches missing constants and searches the {Ronin} namespace.
+ #
+ # @param [Symbol] name
+ # The constant name.
+ #
+ # @return [Object]
+ # The found constant.
+ #
+ # @raise [NameError]
+ # The constant could not be found within {Ronin}.
+ #
+ # @since 1.0.0
+ #
def const_missing(name)
Ronin.send(:const_missing,name) || super(name)
end
end
end