Method: Censive#reset
- Defined in:
- lib/censive.rb
#reset(str = nil) ⇒ Object
118 119 120 121 122 123 124 125 |
# File 'lib/censive.rb', line 118 def reset(str=nil) @rows = nil @cols = @cells = 0 self.string = str if str @encoding = string.encoding super() end |