Method: Cod::SelectGroup#initialize
- Defined in:
- lib/cod/select_group.rb
#initialize(hash_or_value) ⇒ SelectGroup
:nodoc:
11 12 13 14 15 16 17 18 19 |
# File 'lib/cod/select_group.rb', line 11 def initialize(hash_or_value) if hash_or_value.respond_to?(:each) @h = hash_or_value @unpack = false else @h = {box: hash_or_value} @unpack = true end end |