Class: String

Inherits:
Object
  • Object
show all
Defined in:
app/string.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(sym, *args, &block) ⇒ Object



2
3
4
# File 'app/string.rb', line 2

def method_missing(sym, *args, &block)
  Term::ANSIColor.send(sym) { self } rescue super
end