Class: Texy::Configuration::Person
- Inherits:
-
Object
- Object
- Texy::Configuration::Person
- Defined in:
- lib/texy/configuration/person.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#role ⇒ Object
readonly
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(name:, role: nil) ⇒ Person
constructor
A new instance of Person.
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
#name ⇒ Object (readonly)
Returns the value of attribute name.
6 7 8 |
# File 'lib/texy/configuration/person.rb', line 6 def name @name end |
#role ⇒ Object (readonly)
Returns the value of attribute role.
7 8 9 |
# File 'lib/texy/configuration/person.rb', line 7 def role @role end |