#!/usr/bin/env rubyclass Name def family_name=( family ) @family_name = family end def given_name=( given ) @given_name = given endendn = Name.newn.family_name= "A" # => "A"n.given_name= "B" # => "B"p n #