class Estreet::ObjectExpression
Public Class Methods
new(properties)
click to toggle source
# File lib/estreet/object_expression.rb, line 3 def initialize(properties) raise TypeError unless properties.all? {|p| p.is_a? Property } @props = properties end
Public Instance Methods
attributes()
click to toggle source
Calls superclass method
# File lib/estreet/object_expression.rb, line 8 def attributes super.merge(properties: @props) end