Method: Col#method_missing
- Defined in:
- lib/col.rb
#method_missing(message, *args, &block) ⇒ Object
65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/col.rb', line 65 def method_missing(, *args, &block) unless args.empty? super # We're not interested in a message with arguments; NoMethodError end if Col::DB.method?() Col.new( self.fmt() ) # Col["..."].yellow -> Col # to allow Col["..."].yellow.bold else self.fmt() # Col["..."].gbow -> String end end |