From: grzegorz.jakubiak@... Date: 2018-02-13T20:58:02+00:00 Subject: [ruby-core:85528] [Ruby trunk Bug#14473] Range#subrange? Issue #14473 has been reported by greggzst (Grzegorz Jakubiak). ---------------------------------------- Bug #14473: Range#subrange? https://bugs.ruby-lang.org/issues/14473 * Author: greggzst (Grzegorz Jakubiak) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Hi there, I'd like to propose a method that returns true when a range that the method gets called on is a subrange of a range passed in as an argument. Example: ~~~ ruby (2..4).subrange?(1...4) => true (-2..2).subrange?(-1..3) => false ~~~ -- https://bugs.ruby-lang.org/ Unsubscribe: