Class: SubstringPair
- Inherits:
-
Array
- Object
- Array
- SubstringPair
- Defined in:
- lib/adlint/prelude.rb
Instance Method Summary collapse
-
#initialize(lhs_suffix, rhs_suffix, len) ⇒ SubstringPair
constructor
A new instance of SubstringPair.
- #lhs ⇒ Object
- #rhs ⇒ Object
Constructor Details
#initialize(lhs_suffix, rhs_suffix, len) ⇒ SubstringPair
Returns a new instance of SubstringPair.
198 199 200 |
# File 'lib/adlint/prelude.rb', line 198 def initialize(lhs_suffix, rhs_suffix, len) super([lhs_suffix.prefix(len), rhs_suffix.prefix(len)]) end |
Instance Method Details
#lhs ⇒ Object
202 203 204 |
# File 'lib/adlint/prelude.rb', line 202 def lhs self.first end |
#rhs ⇒ Object
206 207 208 |
# File 'lib/adlint/prelude.rb', line 206 def rhs self.last end |