2015
Oct
27
comment Does extending a ruby class violate the LSP?
@JörgWMittag sorry but I do not understand the basic concept here. I need to study and see some real world examples. My point is that I cant follow your reasoning, unfortunately. Thanks, at least you showed me that I totally missed the point, I must go to square one.
Oct
27
comment Does extending a ruby class violate the LSP?
I didn't get the sarcasm, but I prefer this example anyway. At this age and time IMHO is wiser to avoid this kind of misunderstandings.
Oct
27
comment Does extending a ruby class violate the LSP?
Thanks for clarifying. So - to make sure I understood the principle - a violation will happen if we choose to override a method defined in T by re-defining it on class S? (e.g. if T.method1.is_a? String and S.method1.is_a? FixNum)
Oct
27
revised Does extending a ruby class violate the LSP?
Changed the answer to reflect on new code example.
Oct
27
awarded  Scholar
Oct
27
revised Does extending a ruby class violate the LSP?
edited body
Oct
27
accepted Does extending a ruby class violate the LSP?
Oct
27
suggested approved edit on Does extending a ruby class violate the LSP?
Oct
27
awarded  Editor
Oct
27
comment Does extending a ruby class violate the LSP?
Sorry, that came out badly, there was no intention of insulting women or anyone else for the matter. I changed the code sample, thanks for pointing that out.
Oct
27
revised Does extending a ruby class violate the LSP?
edited body
Oct
27
asked Does extending a ruby class violate the LSP?
2014
Aug
28
awarded  Supporter
Feb
11
awarded  Autobiographer