Class: Ducktrap::Node::Key
- Inherits:
-
Ducktrap::Node
- Object
- Ducktrap::Node
- Ducktrap::Node::Key
- Includes:
- Unary
- Defined in:
- lib/ducktrap/node/key.rb,
lib/ducktrap/node/key/add.rb,
lib/ducktrap/node/key/dump.rb,
lib/ducktrap/node/key/fetch.rb,
lib/ducktrap/node/key/delete.rb
Overview
Base class for ducktraps that manipulate keys
Defined Under Namespace
Classes: Add, Delete, Dump, Evaluator, Fetch
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
private
Return key.
Instance Method Summary collapse
-
#initialize(operand, key) ⇒ undefined
constructor
private
Initiaize object.
Methods inherited from Ducktrap::Node
Methods included from PrettyDump
Constructor Details
#initialize(operand, key) ⇒ undefined
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Initiaize object
24 25 26 27 |
# File 'lib/ducktrap/node/key.rb', line 24 def initialize(operand, key) @key = key super(operand) end |
Instance Attribute Details
#key ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return key
13 14 15 |
# File 'lib/ducktrap/node/key.rb', line 13 def key @key end |