class DrgDSL::Ast::ParenExpression

One expression surrounded by parentheses, e.g., “(exp)”

Attributes

expression[R]

Public Class Methods

new(expression) click to toggle source
# File lib/drgdsl/ast.rb, line 133
def initialize(expression)
  @expression = expression
end

Public Instance Methods

hash() click to toggle source
# File lib/drgdsl/ast.rb, line 141
def hash
  @hash ||= [type, expression].hash
end
to_hash() click to toggle source
# File lib/drgdsl/ast.rb, line 137
def to_hash
  { paren: expression.to_hash }
end