Module: Pippi::Checks::MapFollowedByFlatten::MyFlatten
- Defined in:
- lib/pippi/checks/map_followed_by_flatten.rb
Instance Method Summary collapse
Instance Method Details
#flatten(depth = nil) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/pippi/checks/map_followed_by_flatten.rb', line 6 def flatten(depth = nil) if depth && depth == 1 self.class._pippi_check_map_followed_by_flatten.add_problem end if depth super(depth) else super() end end |