class Estreet::Property

Public Class Methods

new(key, value) click to toggle source

TODO: getters and setters

# File lib/estreet/object_expression.rb, line 15
def initialize(key, value)
  @key = Identifier.new(key)
  @value = value.to_expression
end

Public Instance Methods

attributes() click to toggle source
Calls superclass method Estreet::Node#attributes
# File lib/estreet/object_expression.rb, line 20
def attributes
  super.merge(kind: "init".freeze, key: @key, value: @value)
end