Method: BinData::Struct#field_names
- Defined in:
- lib/bindata/struct.rb
#field_names(include_hidden = false) ⇒ Object
Returns a list of the names of all fields accessible through this object. include_hidden specifies whether to include hidden names in the listing.
118 119 120 121 122 123 124 125 |
# File 'lib/bindata/struct.rb', line 118 def field_names(include_hidden = false) if include_hidden @field_names.compact else hidden = get_parameter(:hide) || [] @field_names.compact - hidden end end |