Class: Hecks::Bluebook::Expression::Resolver::First

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

Overview

receiver.first -- sibling addition to Last immediately above, same shape, same vendored-not-upstream status. Added for the shipping domain's legs.first (an itinerary's departure leg), the exact mirror of legs.last (its arrival leg) that domain already leaned on -- Last's own duck-typed- on-respond_to? reasoning applies unchanged, so first_of below is last_of with the one method swapped, not a new design.

Instance Attribute Summary collapse

Instance Attribute Details

#receiverObject

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



134
135
136
# File 'lib/hecks/bluebook/expression/resolver.rb', line 134

def receiver
  @receiver
end