lib/active_type/virtual_attributes.rb
def inspect
      inspection = attributes.collect do |name, value|
        "#{name}: #{VirtualAttributes.attribute_for_inspect(value)}"
      end.sort.compact.join(", ")
      "#<#{self.class} #{inspection}>"
    end
# Returns the contents of the record as a nicely formatted string.
Returns the contents of the record as a nicely formatted string.
Returns the contents of the record as a nicely formatted string .
def inspect
      inspection = attributes.collect do |name, value|
        "#{name}: #{VirtualAttributes.attribute_for_inspect(value)}"
      end.sort.compact.join(", ")
      "#<#{self.class} #{inspection}>"
    end
def inspect inspection = attributes . collect do | name , value | "#{name}: #{VirtualAttributes.attribute_for_inspect(value)}" end . sort . compact . join ( ", " ) "#<#{self.class} #{inspection}>" end
Returns the contents of the record as a nicely formatted string.
Returns the contents of the record as a nicely formatted string .