Module: Treat::Helpers::String::IsMixin

Defined in:
lib/treat/helpers/string.rb

Overview

Determines whether module is an “-able” mixin kind of thing.

Instance Method Summary collapse

Instance Method Details

#is_mixin?Boolean

Returns:

  • (Boolean)


105
# File 'lib/treat/helpers/string.rb', line 105

def is_mixin?; to_s[-4..-1] == 'able'; end