Class: Texy::Configuration::Person

Inherits:
Object
  • Object
show all
Defined in:
lib/texy/configuration/person.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, role: nil) ⇒ Person

Returns a new instance of Person.



9
10
11
12
# File 'lib/texy/configuration/person.rb', line 9

def initialize(name:, role: nil)
  @name = name
  @role = role
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/texy/configuration/person.rb', line 6

def name
  @name
end

#roleObject (readonly)

Returns the value of attribute role.



7
8
9
# File 'lib/texy/configuration/person.rb', line 7

def role
  @role
end