Class: Jumon::Prompt

Inherits:
Object
  • Object
show all
Defined in:
lib/jumon/prompt.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#systemObject (readonly)

Returns the value of attribute system.



7
8
9
# File 'lib/jumon/prompt.rb', line 7

def system
  @system
end

#userObject (readonly)

Returns the value of attribute user.



7
8
9
# File 'lib/jumon/prompt.rb', line 7

def user
  @user
end