Class: Estreet::Property
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(key, value) ⇒ Property
constructor
TODO: getters and setters.
Methods inherited from Node
Constructor Details
#initialize(key, value) ⇒ Property
TODO: getters and setters
15 16 17 18 |
# File 'lib/estreet/object_expression.rb', line 15 def initialize(key, value) @key = Identifier.new(key) @value = value.to_expression end |
Instance Method Details
#attributes ⇒ Object
20 21 22 |
# File 'lib/estreet/object_expression.rb', line 20 def attributes super.merge(kind: "init".freeze, key: @key, value: @value) end |