Class: String
Overview
The only really important matcher
Direct Known Subclasses
Instance Method Summary collapse
-
#bold ⇒ Object
make a string bold.
- #matcher(opts = {}) ⇒ Object
Instance Method Details
#bold ⇒ Object
make a string bold
112 113 114 |
# File 'lib/core_extensions.rb', line 112 def bold "\033[1m#{self}" end |
#matcher(opts = {}) ⇒ Object
97 98 99 100 |
# File 'lib/core_extensions.rb', line 97 def matcher(opts = {}) # if we have a leading : or a /:xyz - a matcher is already defined self =~ /(^:|\/:)/ ? PathString.new(self) : PathString.new(":#{self}") end |