Class: Deface::Actions::Remove

Inherits:
Action
  • Object
show all
Defined in:
lib/deface/actions/remove.rb

Instance Method Summary collapse

Methods inherited from Action

#initialize, to_sym

Constructor Details

This class inherits a constructor from Deface::Actions::Action

Instance Method Details

#execute(target_range) ⇒ Object



4
5
6
# File 'lib/deface/actions/remove.rb', line 4

def execute(target_range)
  target_range.map(&:remove)
end

#range_compatible?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/deface/actions/remove.rb', line 8

def range_compatible?
  true
end