Method: Ing::Files#action

Defined in:
lib/ing/files.rb

#action(instance) ⇒ Object

Wraps an action object and call it accordingly to the behavior attribute.



79
80
81
82
83
84
85
# File 'lib/ing/files.rb', line 79

def action(instance) #:nodoc:
  if revoke?
    instance.revoke!
  else
    instance.invoke!
  end
end