Class: Person

Inherits:
Struct show all
Defined in:
lib/colorful_inspect.rb

Overview

There is but one test to see if this works: see if the output is pretty.

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

#colorless_pretty_print, #pretty_print

Instance Attribute Details

#first_nameObject

Returns the value of attribute first_name

Returns:

  • (Object)

    the current value of first_name



301
302
303
# File 'lib/colorful_inspect.rb', line 301

def first_name
  @first_name
end

#last_nameObject

Returns the value of attribute last_name

Returns:

  • (Object)

    the current value of last_name



301
302
303
# File 'lib/colorful_inspect.rb', line 301

def last_name
  @last_name
end