Sha256: c51164fc901acbe2e87bc4d853fef79780b51ae22286e45ae68d2b271e4f7204
Contents?: true
Size: 468 Bytes
Versions: 12
Compression:
Stored size: 468 Bytes
Contents
class Target attr_accessor :name, :identifier, :attributes, :is_private, :private_attributes def initialize( name, identifier = name, attributes = {}, is_private = false ) @name = name @identifier = identifier @attributes = attributes == nil ? {} : attributes.transform_keys(&:to_sym) @is_private = is_private @private_attributes = Set[] end def is_valid @identifier != nil && !@identifier.strip.empty? end end
Version data entries
12 entries across 12 versions & 1 rubygems