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 | 2a812650a8f315130224a27d6a0605962b75323f (patch) | |
tree | 7a9748eae025847e9b74246ed1d3357a3a1362a7 /lib/rdoc/markup/simple_markup/inline.rb | |
parent | c3c58513d7ebb2c8396cf195b804bfc3e16e4871 (diff) |
Move RDoc tests out of lib/
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14757 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/markup/simple_markup/inline.rb')
-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 120d347be6..ec1faf13aa 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 |