Class: AddTimestampsFuncFilter
- Inherits:
-
Ripper::Filter
- Object
- Ripper::Filter
- AddTimestampsFuncFilter
- Defined in:
- lib/func_filter.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#fclass ⇒ Object
Returns the value of attribute fclass.
-
#func_str ⇒ Object
Returns the value of attribute func_str.
Instance Method Summary collapse
- #add_tok(tok) ⇒ Object
-
#initialize(src, fclass) ⇒ AddTimestampsFuncFilter
constructor
A new instance of AddTimestampsFuncFilter.
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
#fclass ⇒ Object
Returns the value of attribute fclass.
544 545 546 |
# File 'lib/func_filter.rb', line 544 def fclass @fclass end |
#func_str ⇒ Object
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 |