Sha256: 2ccfb0b9fa3113b81bda5d8055926faf2a6baf7004397cde1956b986ed1d531f
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
module TokyoMetro::Factory::Seed::Common::SetOptionalVariables private def set_optional_variables( args ) unless args.empty? raise [ "Please over-ride this method \'#{ __method__ }\' in \'#{ self.class }\'." , "The following variable(s) are given." , args.to_s ].join( "\n" ) end end def set_optional_variables__check_length_of_args( args , valid_number_of_args ) unless args.length == valid_number_of_args raise [ "Error: The variables \'args\' should contain #{ valid_number_of_args } element(s)." , "The following array you send to this method is not valid." , args.to_s ].join( "\n" ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tokyo_metro-0.10.1 | lib/tokyo_metro/factory/seed/common/set_optional_variables.rb |