These are chat archives for dry-rb/chat

14th
Dec 2017
Markus Unterwaditzer
@untitaker
Dec 14 2017 11:48
Hi, is there any way to have a Dry::Struct with private fields?
Piotr Solnica
@solnic
Dec 14 2017 11:49
@untitaker just do private :attr_name
Markus Unterwaditzer
@untitaker
Dec 14 2017 11:50
ah thanks. I only tried private; attribute :foo which wasn't working
Piotr Solnica
@solnic
Dec 14 2017 12:39
@untitaker private is a method, it accepts name of a method that you want to mark as private
Markus Unterwaditzer
@untitaker
Dec 14 2017 12:55
yes, but in plain classes I can write a line that just says private and all methods below that line are then private, that's why I tried it out