Sha256: fb1cadad07a54928cdcc89a0497ada363fb40263da01f49f002ce06c21883f75
Contents?: true
Size: 218 Bytes
Versions: 5
Compression:
Stored size: 218 Bytes
Contents
class SmsAero::Group < String extend SmsAero::Callable private def initialize(value) group = value.to_s raise "'#{value}' is not a valid group name" unless group[/^\w{1,20}$/] super group end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
sms_aero-0.2.0 | lib/sms_aero/group.rb |
sms_aero-0.1.3 | lib/sms_aero/group.rb |
sms_aero-0.1.2 | lib/sms_aero/group.rb |
sms_aero-0.1.1 | lib/sms_aero/group.rb |
sms_aero-0.1.0 | lib/sms_aero/group.rb |