Class: LittleGhost::FrameworkPrompts::Reference
- Inherits:
-
Data
- Object
- Data
- LittleGhost::FrameworkPrompts::Reference
- Defined in:
- lib/little_ghost/framework_prompts.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
-
#locals ⇒ Object
readonly
Returns the value of attribute locals.
Instance Method Summary collapse
-
#initialize(key:, locals: {}) ⇒ Reference
constructor
A new instance of Reference.
Constructor Details
#initialize(key:, locals: {}) ⇒ Reference
Returns a new instance of Reference.
83 84 85 |
# File 'lib/little_ghost/framework_prompts.rb', line 83 def initialize(key:, locals: {}) super(key: String(key).freeze, locals: FrameworkPrompts.immutable_copy(locals)) end |
Instance Attribute Details
#key ⇒ Object (readonly)
Returns the value of attribute key
82 83 84 |
# File 'lib/little_ghost/framework_prompts.rb', line 82 def key @key end |
#locals ⇒ Object (readonly)
Returns the value of attribute locals
82 83 84 |
# File 'lib/little_ghost/framework_prompts.rb', line 82 def locals @locals end |