Class: AddTimestampsFuncFilter

Inherits:
Ripper::Filter
  • Object
show all
Defined in:
lib/func_filter.rb

Direct Known Subclasses

RemoveTimestampsFuncFilter

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(src, fclass) ⇒ AddTimestampsFuncFilter

Returns a new instance of AddTimestampsFuncFilter.



546
547
548
549
550
551
# File 'lib/func_filter.rb', line 546

def initialize(src, fclass)
  super src

  @fclass = fclass
  @func_str = ''
end

Instance Attribute Details

#fclassObject

Returns the value of attribute fclass.



544
545
546
# File 'lib/func_filter.rb', line 544

def fclass
  @fclass
end

#func_strObject

Returns the value of attribute func_str.



544
545
546
# File 'lib/func_filter.rb', line 544

def func_str
  @func_str
end

Instance Method Details

#add_tok(tok) ⇒ Object



553
554
555
# File 'lib/func_filter.rb', line 553

def add_tok(tok)
  @func_str += tok
end