Class: String
- Defined in:
- lib/perennial/core_ext/blank.rb,
lib/perennial/core_ext/misc.rb,
lib/perennial/core_ext/inflections.rb,
lib/perennial/core_ext/ansi_formatter.rb
Overview
:nodoc:
Instance Method Summary collapse
- #/(*args) ⇒ Object
- #blank? ⇒ Boolean
- #camelize(capitalize_first_letter = true) ⇒ Object
- #to_ansi ⇒ Object
- #to_pathname ⇒ Object
- #underscore ⇒ Object
Instance Method Details
#/(*args) ⇒ Object
41 42 43 |
# File 'lib/perennial/core_ext/misc.rb', line 41 def /(*args) File.join(self, *args) end |
#blank? ⇒ Boolean
42 43 44 |
# File 'lib/perennial/core_ext/blank.rb', line 42 def blank? self !~ /\S/ end |
#camelize(capitalize_first_letter = true) ⇒ Object
30 31 32 |
# File 'lib/perennial/core_ext/inflections.rb', line 30 def camelize(capitalize_first_letter = true) Perennial::Inflector.camelize(self, capitalize_first_letter) end |
#to_ansi ⇒ Object
138 139 140 |
# File 'lib/perennial/core_ext/ansi_formatter.rb', line 138 def to_ansi Perennial::ANSIFormatter.process(self) end |
#to_pathname ⇒ Object
45 46 47 |
# File 'lib/perennial/core_ext/misc.rb', line 45 def to_pathname Pathname.new(self) end |
#underscore ⇒ Object
26 27 28 |
# File 'lib/perennial/core_ext/inflections.rb', line 26 def underscore Perennial::Inflector.underscore(self) end |