Method: String#formatted

Defined in:
lib/formatted_string.rb

#formatted(fmat) ⇒ Object

Simply sets format=, but returns the string object.



26
27
28
29
# File 'lib/formatted_string.rb', line 26

def formatted(fmat)
  self.format = fmat
  self
end