Module: Ruckus::StructureFixupFieldNames

Defined in:
lib/ruckus/structure/fixupfields.rb

Instance Method Summary collapse

Instance Method Details

#structure_field_def_hook(*a) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
# File 'lib/ruckus/structure/fixupfields.rb', line 3

def structure_field_def_hook(*a)
    args = a[0]
    if args[0] and args[0].kind_of? Symbol
        if args[1]
            args[1][:name] = args[0]
        else
            args[1] = { :name => args[0] }
        end
        args.shift
    end
    super
end