diff options
author | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-28 06:13:06 +0000 |
---|---|---|
committer | drbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-28 06:13:06 +0000 |
commit | 5b66f03798839e307b80aaa07ff96805cb5c2dbc (patch) | |
tree | 7a9748eae025847e9b74246ed1d3357a3a1362a7 /lib/rdoc/markup/simple_markup | |
parent | a320324410c092cb735405e4a782fca9fe3a7d9b (diff) | |
download | ruby-5b66f03798839e307b80aaa07ff96805cb5c2dbc.tar.gz ruby-5b66f03798839e307b80aaa07ff96805cb5c2dbc.tar.xz ruby-5b66f03798839e307b80aaa07ff96805cb5c2dbc.zip |
Move RDoc tests out of lib/
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/markup/simple_markup')
-rw-r--r-- | lib/rdoc/markup/simple_markup/inline.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/rdoc/markup/simple_markup/inline.rb b/lib/rdoc/markup/simple_markup/inline.rb index 120d347be..ec1faf13a 100644 --- a/lib/rdoc/markup/simple_markup/inline.rb +++ b/lib/rdoc/markup/simple_markup/inline.rb @@ -81,7 +81,12 @@ module SM end def to_s - "Special: type=#{type}, text=#{text.dump}" + "Special: type=#{type}, name=#{SM::Attribute.as_string type}, text=#{text.dump}" + end + + def inspect + "#<SM::Special:0x%x @type=%p, name=%p @text=%p>" % [ + object_id, @type, SM::Attribute.as_string(type), text.dump] end end |