Skip to content

Commit 77bdc41

Browse files
add Base.propertynames (issue #34)
1 parent 25818e0 commit 77bdc41

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/dataset.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,15 @@ end
385385
end
386386
end
387387

388+
@inline function Base.propertynames(ds::Union{AbstractDataset,AbstractVariable},private::Bool=false)
389+
names = fieldnames(typeof(ds))
390+
391+
if ds isa AbstractDataset
392+
return (names...,:attrib,:dim,:group)
393+
else
394+
return (names...,:attrib,:dim)
395+
end
396+
end
388397

389398
for (item_color,default) in (
390399
(:section_color, :red),

0 commit comments

Comments
 (0)