1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/e2mmap.rb: Format of E2MM documentation

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40856 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
zzak 2013-05-20 13:01:24 +00:00
parent c09172f395
commit b416c661e8
2 changed files with 14 additions and 6 deletions

View file

@ -1,3 +1,7 @@
Mon May 20 22:00:31 2013 Zachary Scott <zachary@zacharyscott.net>
* lib/e2mmap.rb: Format of E2MM documentation
Mon May 20 21:41:15 2013 Zachary Scott <zachary@zacharyscott.net> Mon May 20 21:41:15 2013 Zachary Scott <zachary@zacharyscott.net>
* ext/extmk.rb: nodoc this file * ext/extmk.rb: nodoc this file

View file

@ -1,13 +1,17 @@
# #
#--
# e2mmap.rb - for ruby 1.1 # e2mmap.rb - for ruby 1.1
# $Release Version: 2.0$ # $Release Version: 2.0$
# $Revision: 1.10 $ # $Revision: 1.10 $
# by Keiju ISHITSUKA # by Keiju ISHITSUKA
# #
# -- #++
# Usage:
# #
# U1) # Helper module for easily defining exceptions with predefined messages.
#
# == Usage
#
# 1.
# class Foo # class Foo
# extend Exception2MessageMapper # extend Exception2MessageMapper
# def_e2message ExistingExceptionClass, "message..." # def_e2message ExistingExceptionClass, "message..."
@ -15,7 +19,7 @@
# ... # ...
# end # end
# #
# U2) # 2.
# module Error # module Error
# extend Exception2MessageMapper # extend Exception2MessageMapper
# def_e2meggage ExistingExceptionClass, "message..." # def_e2meggage ExistingExceptionClass, "message..."
@ -30,7 +34,7 @@
# foo = Foo.new # foo = Foo.new
# foo.Fail .... # foo.Fail ....
# #
# U3) # 3.
# module Error # module Error
# extend Exception2MessageMapper # extend Exception2MessageMapper
# def_e2message ExistingExceptionClass, "message..." # def_e2message ExistingExceptionClass, "message..."
@ -50,7 +54,7 @@
module Exception2MessageMapper module Exception2MessageMapper
@RCS_ID='-$Id: e2mmap.rb,v 1.10 1999/02/17 12:33:17 keiju Exp keiju $-' @RCS_ID='-$Id: e2mmap.rb,v 1.10 1999/02/17 12:33:17 keiju Exp keiju $-'
E2MM = Exception2MessageMapper E2MM = Exception2MessageMapper # :nodoc:
def E2MM.extend_object(cl) def E2MM.extend_object(cl)
super super