Class: DemoMode::Persona::Variant
- Inherits:
-
Struct
- Object
- Struct
- DemoMode::Persona::Variant
- Defined in:
- lib/demo_mode/persona.rb
Instance Attribute Summary collapse
-
#signinable_generator ⇒ Object
readonly
Returns the value of attribute signinable_generator.
Instance Method Summary collapse
Instance Attribute Details
#signinable_generator ⇒ Object (readonly)
Returns the value of attribute signinable_generator.
119 120 121 |
# File 'lib/demo_mode/persona.rb', line 119 def signinable_generator @signinable_generator end |
Instance Method Details
#sign_in_as(&signinable_generator) ⇒ Object
111 112 113 |
# File 'lib/demo_mode/persona.rb', line 111 def sign_in_as(&signinable_generator) @signinable_generator = signinable_generator end |
#title ⇒ Object
115 116 117 |
# File 'lib/demo_mode/persona.rb', line 115 def title name.is_a?(Symbol) ? name.to_s.titleize : name.to_s end |