# Dry::Inflector as module

**URL:** <https://discourse.dry-rb.org/t/dry-inflector-as-module/399>\
**Category:** Ideas\
**Created:** [November 16, 2017, 11:49am UTC](https://discourse.dry-rb.org/t/dry-inflector-as-module/399 "2017-11-16T11:49:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![abinoam](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.dry-rb.org/abinoam/32/35_2.png) [@abinoam](https://discourse.dry-rb.org/u/abinoam)\
**Post date:** [November 16, 2017, 11:49am UTC](https://discourse.dry-rb.org/t/dry-inflector-as-module/399/1 "2017-11-16T11:49:16Z")

</div>

Including Inflector as a module can be useful In some contexts where there’s a heavy use of it.

```ruby
class PostsView
  include Dry::Inflector.module
end

a(href: "/users/#{underscore(name)}")

```

Original discussion at [https://github.com/dry-rb/dry-inflector/issues/9](https://github.com/dry-rb/dry-inflector/issues/9)
