Including Inflector as a module can be useful In some contexts where there’s a heavy use of it.
class PostsView
include Dry::Inflector.module
end
a(href: "/users/#{underscore(name)}")
Original discussion at https://github.com/dry-rb/dry-inflector/issues/9