Class: Jumon::Prompt
- Inherits:
-
Object
- Object
- Jumon::Prompt
- Defined in:
- lib/jumon/prompt.rb
Instance Attribute Summary collapse
-
#system ⇒ Object
readonly
Returns the value of attribute system.
-
#user ⇒ Object
readonly
Returns the value of attribute user.
Instance Method Summary collapse
-
#initialize(yaml) ⇒ Prompt
constructor
A new instance of Prompt.
Constructor Details
#initialize(yaml) ⇒ Prompt
Returns a new instance of Prompt.
9 10 11 12 |
# File 'lib/jumon/prompt.rb', line 9 def initialize(yaml) @system = yaml[:prompts][:system] @user = yaml[:prompts][:user] end |
Instance Attribute Details
#system ⇒ Object (readonly)
Returns the value of attribute system.
7 8 9 |
# File 'lib/jumon/prompt.rb', line 7 def system @system end |
#user ⇒ Object (readonly)
Returns the value of attribute user.
7 8 9 |
# File 'lib/jumon/prompt.rb', line 7 def user @user end |