# File lib/bee.rb, line 514 def initialize(object, targets) check_hash(object, Target::DESCRIPTION) @targets = targets @name = object[Target::KEY] error "Target name cannot be 'null'" if @name == nil @depends = object['depends']||[] @depends = Array(@depends) @description = object['description'] @script = object['script'] @script = [@script] if @script.kind_of?(String) @script = [] if not @script end