Class: Hecks::Bluebook::Expression::Resolver::Presence
- Inherits:
-
Struct
- Object
- Struct
- Hecks::Bluebook::Expression::Resolver::Presence
- 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
-
#negated ⇒ Object
Returns the value of attribute negated.
-
#receiver ⇒ Object
Returns the value of attribute receiver.
Instance Attribute Details
#negated ⇒ Object
Returns the value of attribute negated
90 91 92 |
# File 'lib/hecks/bluebook/expression/resolver.rb', line 90 def negated @negated end |
#receiver ⇒ Object
Returns the value of attribute receiver
90 91 92 |
# File 'lib/hecks/bluebook/expression/resolver.rb', line 90 def receiver @receiver end |