Sha256: fec2263b76d12b58df2d1a5d2ba8ed46539de4b76239b0070d9d9c3f002ad757
Contents?: true
Size: 370 Bytes
Versions: 33
Compression:
Stored size: 370 Bytes
Contents
# frozen_string_literal: true module LeapSalesforce # Methods common to a enum class module CommonEnumMethods # @return [String] Sample value from Enum def sample values.sample end # @return [Array] List of values for enumeration/picklist def values instance_variables.collect { |var| instance_variable_get(var) } end end end
Version data entries
33 entries across 33 versions & 1 rubygems