Module: Inkjet::Styles::String

Defined in:
lib/inkjet/styles.rb

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(meth, *args) ⇒ Object



38
39
40
41
42
43
44
# File 'lib/inkjet/styles.rb', line 38

def method_missing(meth, *args)
  if meth.match(/\A(#{Inkjet::Styles::Styles.join("|")})(!?)\Z/)
    Inkjet.send("stylize#{$2}", $1, self, *args)
  else
    super(meth, *args)
  end
end