Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/defmastership/comment_filter.rb
Overview
adding a method to string to figure out if a string is commented or not.
Instance Method Summary collapse
Instance Method Details
#commented? ⇒ Boolean
7 8 9 |
# File 'lib/defmastership/comment_filter.rb', line 7 def commented? !!match(DefMastership::DMRegexp::SINGLE_LINE_COMMENT) end |