• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

dblock / ruby-enum
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: dblock/coveralls-github-token
DEFAULT BRANCH: master
Repo Added 30 Dec 2025 05:05PM UTC
Files 7
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH subclass-inherited-values
branch: subclass-inherited-values
CHANGE BRANCH
x
Reset
  • subclass-inherited-values
  • HEAD
  • dblock/coveralls-github-token
  • document-performance
  • fix-subclass-no-defines
  • fix-values-override-issue-62
  • master
  • memoize-enum-hash
  • rename-ruby-namespace
  • replace-code-climate-with-coveralls
  • ruby-4.0
  • update-copyright-year

15 Aug 2026 01:26AM UTC coverage: 100.0%. Remained the same
#27

Pull #59

dblock
Inherit keys, key?, value?, key, value, to_h, parse and each from superclass

Follow-up to #49/#58. values already merged enums from a superclass
chain, but keys, key?, value?, key, value, to_h, parse and each only
looked at a class' own enums, silently ignoring any enums defined in
a superclass.

Introduces _enum_hash/_enums_by_value that merge a class' own enums
with those of its superclass chain (subclass definitions take
precedence over the same key/value defined in a superclass), and uses
them for all read methods. define/duplicate validation continues to
use the class' own enums only (_own_enum_hash/_own_enums_by_value), so
a subclass may still redefine a key or value already used by a
superclass.

Documents the change in README.md and UPGRADING.md, and adds tests
covering a subclass redefining a parent class' key.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Pull Request #59: Inherit keys, key?, value?, key, value, to_h, parse and each from superclass

18 of 18 new or added lines in 1 file covered. (100.0%)

160 of 160 relevant lines covered (100.0%)

7.68 hits per line

Relevant lines Covered
Build:
Build:
160 RELEVANT LINES 160 COVERED LINES
7.68 HITS PER LINE
Source Files on subclass-inherited-values
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
#27 subclass-inherited-values Inherit keys, key?, value?, key, value, to_h, parse and each from superclass Follow-up to #49/#58. values already merged enums from a superclass chain, but keys, key?, value?, key, value, to_h, parse and each only looked at a class' own enums, si... Pull #59 15 Aug 2026 01:26AM UTC dblock
100.0
#26 subclass-inherited-values Fix 'sub class' -> 'subclass' spelling in README.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Pull #59 15 Aug 2026 01:25AM UTC dblock
100.0
#25 subclass-inherited-values Add example of subclass redefining a parent key to README.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Pull #59 15 Aug 2026 01:19AM UTC dblock
100.0
#24 subclass-inherited-values Add tests for a subclass redefining a parent class' key Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Pull #59 15 Aug 2026 01:18AM UTC dblock
100.0
#23 subclass-inherited-values Unwrap prose in UPGRADING.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Pull #59 15 Aug 2026 01:17AM UTC dblock
100.0
#22 subclass-inherited-values Document keys/key?/value?/key/value/to_h/parse/each inheritance in README.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Pull #59 15 Aug 2026 01:15AM UTC dblock
100.0
#21 subclass-inherited-values Document keys/key?/value?/key/value/to_h/parse/each inheritance in UPGRADING.md Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> push 15 Aug 2026 01:15AM UTC dblock
100.0
#20 subclass-inherited-values Inherit keys, key?, value?, key, value, to_h, parse and each from superclass Follow-up to #49/#58. values already merged enums from a superclass chain, but keys, key?, value?, key, value, to_h, parse and each only looked at a class' own enums, si... Pull #59 15 Aug 2026 01:13AM UTC dblock
100.0
See All Builds (51)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc