From: nobu@... Date: 2018-02-22T07:21:39+00:00 Subject: [ruby-core:85744] [Ruby trunk Feature#14473] Add Range#subrange? Issue #14473 has been updated by nobu (Nobuyoshi Nakada). It should consider `exclude_end?` too. ---------------------------------------- Feature #14473: Add Range#subrange? https://bugs.ruby-lang.org/issues/14473#change-70586 * Author: greggzst (Grzegorz Jakubiak) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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: