Class: Hecks::Bluebook::Expression::Resolver::Presence

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

Overview

.present?/.blank? -- vendored addition, not (yet) upstream hecks (migration plan task 8): the second-most pervasive gap this pass found, right behind .match? -- confirmed real via the same "no such attribute" Lookup-fallback crash, since neither suffix existed in this leaf grammar at all. Rails- standard semantics (blank = nil, or responds_to?(:empty?) && empty? ; present = !blank), not just !nil? -- matches what every corpus author actually means by .present? on a string field that could legitimately be "" rather than absent.

Instance Attribute Summary collapse

Instance Attribute Details

#negatedObject

Returns the value of attribute negated

Returns:

  • (Object)

    the current value of negated



90
91
92
# File 'lib/hecks/bluebook/expression/resolver.rb', line 90

def negated
  @negated
end

#receiverObject

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



90
91
92
# File 'lib/hecks/bluebook/expression/resolver.rb', line 90

def receiver
  @receiver
end