Class: Lhm::Intersection
- Inherits:
-
Object
- Object
- Lhm::Intersection
- Defined in:
- lib/lhm/intersection.rb
Overview
Determine and format columns common to origin and destination.
Defined Under Namespace
Modules: Joiners
Instance Method Summary collapse
- #destination ⇒ Object
-
#initialize(origin, destination, renames = {}) ⇒ Intersection
constructor
A new instance of Intersection.
- #origin ⇒ Object
Constructor Details
#initialize(origin, destination, renames = {}) ⇒ Intersection
Returns a new instance of Intersection.
7 8 9 10 11 |
# File 'lib/lhm/intersection.rb', line 7 def initialize(origin, destination, renames = {}) @origin = origin @destination = destination @renames = renames end |
Instance Method Details
#destination ⇒ Object
17 18 19 |
# File 'lib/lhm/intersection.rb', line 17 def destination (common + @renames.values).extend(Joiners) end |
#origin ⇒ Object
13 14 15 |
# File 'lib/lhm/intersection.rb', line 13 def origin (common + @renames.keys).extend(Joiners) end |