Class: Uttk::PathFilters::RemoveTypes

Inherits:
PathFilter show all
Includes:
Concrete
Defined in:
lib/uttk/path_filters/RemoveTypes.rb

Instance Method Summary collapse

Methods inherited from PathFilter

#update

Methods inherited from Filters::Filter

composition, #initialize, #notif

Methods inherited from Logger::Backend

#initialize, #update

Constructor Details

This class inherits a constructor from Uttk::Filters::Filter

Instance Method Details

#filter(path, leaf) ⇒ Object



14
15
16
17
18
19
# File 'lib/uttk/path_filters/RemoveTypes.rb', line 14

def filter ( path, leaf )
  path.each do |seg|
    seg.options.delete :type
  end
  [path, leaf]
end