---
title: "Ruby 2.5 Blogs"
description: "BigBinary blog posts in the Ruby 2.5 category."
canonical_url: "https://www.bigbinary.com/blog/categories/ruby-2-5"
markdown_url: "https://www.bigbinary.com/blog/categories/ruby-2-5.md"
---

# Ruby 2.5 Blogs

BigBinary blog posts in the Ruby 2.5 category.

## Posts

### Ruby 2.5 added lazy proc allocation for block parameters

[Ruby 2.5 added lazy proc allocation for block parameters](https://www.bigbinary.com/blog/ruby-2-5-added-lazy-proc-allocation-for-block-parameters)

- Author: Amit Choudhary
- Published: May 22, 2018
- Categories: Ruby 2.5, Ruby

Ruby 2.5 added lazy proc allocation for block parameters

### Ruby 2.5 adds Thread.report_on_exception by default

[Ruby 2.5 adds Thread.report_on_exception by default](https://www.bigbinary.com/blog/ruby-2-5-enables-thread-report_on_exception-by-default)

- Author: Vishal Telangre
- Published: April 18, 2018
- Categories: Ruby 2.5, Ruby

Ruby 2.5 enables Thread.report_on_exception by default and we get more info when
threads die

### Ruby 2.5 supports measuring branch and method coverages

[Ruby 2.5 supports measuring branch and method coverages](https://www.bigbinary.com/blog/ruby-2-5-supports-measuring-branch-and-method-coverages)

- Author: Vishal Telangre
- Published: April 11, 2018
- Categories: Ruby 2.5, Ruby

Ruby 2.5 has added support to measure branch and method coverage using
\`Coverage\` library.

### Ruby 2.5 adds Exception#full_message method

[Ruby 2.5 adds Exception#full_message method](https://www.bigbinary.com/blog/ruby-2-5-adds-exception-full_message-method)

- Author: Vishal Telangre
- Published: March 13, 2018
- Categories: Ruby 2.5, Ruby

Ruby 2.5 has added Exception#full_message method to retrieve a string expression
of an exception, formatted in the same way with that Ruby prints an uncaught
exception out.

### Ruby 2.5 prints backtrace & error message in reverse

[Ruby 2.5 prints backtrace & error message in reverse](https://www.bigbinary.com/blog/ruby-2-5-prints-backstrace-and-error-message-in-reverse-order)

- Author: Vishal Telangre
- Published: March 7, 2018
- Categories: Ruby 2.5, Ruby

Ruby 2.5 prints backtrace in reverse order (stack frames first and error last)
if STDERR is unchanged and a TTY.

### Ruby 2.5 added Hash#slice method

[Ruby 2.5 added Hash#slice method](https://www.bigbinary.com/blog/ruby-2-5-added-hash-slice-method)

- Author: Amit Choudhary
- Published: February 6, 2018
- Categories: Ruby 2.5, Ruby

Hash#slice method is added in Ruby 2.5

### Ruby 2.5 allows creating structs with keyword arguments

[Ruby 2.5 allows creating structs with keyword arguments](https://www.bigbinary.com/blog/ruby-2-5-allows-creating-structs-with-keyword-arguments)

- Author: Prathamesh Sonpatki
- Published: January 16, 2018
- Categories: Ruby 2.5, Ruby

We can now create structs by passing keyword arguments using a flag keyword_init

### Ruby 2.5 adds Hash#transform_keys method

[Ruby 2.5 adds Hash#transform_keys method](https://www.bigbinary.com/blog/ruby-2-5-adds-hash-transform_keys-method)

- Author: Prathamesh Sonpatki
- Published: January 9, 2018
- Categories: Ruby 2.5, Ruby

Neat way to transform keys of the Hash, now natively supported by Ruby

### Ruby 2.5 enumerable predicates accept pattern argument

[Ruby 2.5 enumerable predicates accept pattern argument](https://www.bigbinary.com/blog/ruby-2-5-enumerable-predicates-accept-pattern-argument)

- Author: Prathamesh Sonpatki
- Published: January 2, 2018
- Categories: Ruby 2.5, Ruby

all?, any?, one? and none? method accept a single pattern argument and perform
case equality with that argument and it's contents

### Ruby 2.5 requires pp by default

[Ruby 2.5 requires pp by default](https://www.bigbinary.com/blog/ruby-2-5-requires-pp-by-default)

- Author: Prathamesh Sonpatki
- Published: December 20, 2017
- Categories: Ruby 2.5, Ruby

No need to require pp separately now, it is required'd by default

### Array#prepend and Array#append in Ruby 2.5

[Array#prepend and Array#append in Ruby 2.5](https://www.bigbinary.com/blog/array-prepend-and-array-append-in-ruby-2-5)

- Author: Prathamesh Sonpatki
- Published: December 19, 2017
- Categories: Ruby 2.5, Ruby

Better names for existing Array#unshift and Array#push methods

### Ruby 2.5 added yield_self

[Ruby 2.5 added yield_self](https://www.bigbinary.com/blog/ruby-2-5-added-yield_self)

- Author: Vijay Kumar Agrawal
- Published: December 12, 2017
- Categories: Ruby 2.5, Ruby

Method to yield the receiver to the given block.

### Ruby 2.5 added delete_prefix and delete_suffix methods

[Ruby 2.5 added delete_prefix and delete_suffix methods](https://www.bigbinary.com/blog/ruby-2-5-added-delete_prefix-and-delete_suffix-methods)

- Author: Amit Choudhary
- Published: November 28, 2017
- Categories: Ruby 2.5, Ruby

delete_prefix and delete_suffix methods are added in Ruby 2.5

### Ruby 2.5 introduces Dir.children and Dir.each_child

[Ruby 2.5 introduces Dir.children and Dir.each_child](https://www.bigbinary.com/blog/ruby-2_5-introduces-dir-children-and-dir-each_child)

- Author: Mohit Natoo
- Published: November 21, 2017
- Categories: Ruby 2.5, Ruby

Ruby 2.5 introduces methods new methods to have file names in a directory
without \`.\` and \`..\`

### Ruby 2.5 allows rescue/else/ensure inside do/end blocks

[Ruby 2.5 allows rescue/else/ensure inside do/end blocks](https://www.bigbinary.com/blog/ruby-2.5-allows-rescue-inside-do-end-blocks)

- Author: Amit Choudhary
- Published: October 24, 2017
- Categories: Ruby 2.5, Ruby

rescue/else/ensure are allowed inside do/end blocks in ruby 2.5

### Ruby 2.5 has removed top level constant lookup

[Ruby 2.5 has removed top level constant lookup](https://www.bigbinary.com/blog/ruby-2.5-has-removed-top-level-constant-lookup)

- Author: Amit Choudhary
- Published: October 18, 2017
- Categories: Ruby 2.5, Ruby

top level constant lookup has been removed in ruby 2.5

## Links

- [Human page](https://www.bigbinary.com/blog/categories/ruby-2-5)
