arocnies
06/15/2017, 6:36 PMRuckus
06/15/2017, 6:54 PMFileBrick
and not a String
, I'd say just leave it as it is.arocnies
06/15/2017, 6:57 PM"foo".state = ...
but I can't find it now.Ruckus
06/15/2017, 6:58 PMarocnies
06/15/2017, 6:59 PMRuckus
06/15/2017, 7:00 PMFileBrick
so you wouldn't have access to state
or copyOf
.FileBrick
is created in the block, creating a var String.state
wouldn't work since you can't really define a logical getter for it.
Unless I'm wrong in assuming state
is a property of FileBrick
. If it isn't, there could be clean ways to do it.arocnies
06/15/2017, 7:07 PMstate
is a property of FileBrick
. Hmmm. I think it's starting to make sense. I think I need to experiment a bit to fully understand the implications of using String.statefile { "/etc/foo".state = copyOf("foo") }
Ruckus
06/15/2017, 7:43 PM