Module: Stringlike
- Included in:
- Maruku, PEGMarkdown, RDiscount
- Defined in:
- lib/acts_as_markup/stringlike.rb
Overview
This mixin allows our markup objects (like RDiscount or RedCloth) to have all the normal string methods that are available.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(method, *params) ⇒ Object
4 5 6 |
# File 'lib/acts_as_markup/stringlike.rb', line 4 def method_missing(method, *params) self.to_s.send(method, *params) end |