class Fastlane::Lane
def initialize(platform: nil, name: nil, description: nil, block: nil, is_private: false)
def initialize(platform: nil, name: nil, description: nil, block: nil, is_private: false) raise "description must be an array" unless description.kind_of? Array raise "lane name must not contain any spaces".red if name.to_s.include? " " raise "lane name must start with :".red unless name.kind_of? Symbol if self.class.black_list.include?(name.to_s) Helper.log.error "Lane Name '#{name}' can not be one of the followings: #{self.class.black_list}".red raise "Name '#{name}' is already taken" end self.platform = platform self.name = name self.description = description self.block = block self.is_private = is_private end