class Deptree::Dependency::Action

Attributes

name[R]

Public Class Methods

new(name, behaviour, context) click to toggle source
# File lib/deptree/dependency/actions.rb, line 28
def initialize(name, behaviour, context)
  @name, @behaviour, @context = name, behaviour, context
end

Public Instance Methods

==(other) click to toggle source
# File lib/deptree/dependency/actions.rb, line 36
def ==(other)
  name == other.name
end
execute() click to toggle source
# File lib/deptree/dependency/actions.rb, line 32
def execute
  @context.instance_eval(&@behaviour)
end