method
convert_specials
v1_8_6_287 -
Show latest stable
- Class:
SM::AttributeManager
convert_specials(str, attrs)public
No documentation available.
# File lib/rdoc/markup/simple_markup/inline.rb, line 182
def convert_specials(str, attrs)
unless SPECIAL.empty?
SPECIAL.each do |regexp, attr|
str.scan(regexp) do
attrs.set_attrs($`.length, $&.length, attr | Attribute::SPECIAL)
end
end
end
end