Method: BinData::DSLMixin::DSLParser#hide

Defined in:
lib/bindata/dsl.rb

#hide(*args) ⇒ Object



98
99
100
101
102
103
104
105
106
107
# File 'lib/bindata/dsl.rb', line 98

def hide(*args)
  if option?(:hidden_fields)
    @hide ||= parent_attribute(:hide, []).dup

    hidden = args.collect(&:to_sym).compact
    @hide.concat(hidden)

    @hide
  end
end