Method: FileFilter::Formatter#initialize
- Defined in:
- lib/inplace.rb
#initialize(template) ⇒ Formatter
Returns a new instance of Formatter.
407 408 409 410 411 412 413 414 415 416 417 418 419 420 |
# File 'lib/inplace.rb', line 407 def initialize(template) @template = template.dup begin self.format("0", "1", "2") rescue => e raise e end if @arity == 0 @template = "(#{@template}) < %1 > %2" @arity = 2 end end |