Class: Hecks::Bluebook::Expression::Resolver::ArrayLiteral

Inherits:
Struct
  • Object
show all
Defined in:
lib/hecks/bluebook/expression/resolver.rb

Overview

["active", "suspended"] — a literal set, the haystack half of an .include?. Vocabulary::IncludeHaystack has always ADMITTED Array (and Evaluator#includes? has always had a when Array arm), but nothing could produce one: there was no array-literal node, so ["a", "b"].include?(x) fell through to Lookup and refused with cannot resolve "[\"a\", \"b\"]". A declared capability with no way to spell it.

Instance Attribute Summary collapse

Instance Attribute Details

#elementsObject

Returns the value of attribute elements

Returns:

  • (Object)

    the current value of elements



41
42
43
# File 'lib/hecks/bluebook/expression/resolver.rb', line 41

def elements
  @elements
end