Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Copy Source | Copy HTML class A def save (validate = true ) validate ? "INVALID" : "VALID" end end class B # - def initialize @a = A .new end def save @a. save end end A . new . save # => "INVALID" B . new . save # => "VALID" A . new . save # => "INVALID"
Source: https://habr.com/ru/post/89058/
All Articles