Sha256: c69fa1126e1b814ce54572f845e5e3c2af67f6c713834f745edd11084e21dcb3

Contents?: true

Size: 182 Bytes

Versions: 7

Compression:

Stored size: 182 Bytes

Contents

require 'active_support/inflector'
module Shhh
  module App
    module ShortName
      def short_name
        self.name.split(/::/)[-1].underscore.to_sym
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
shhh-1.7.0 lib/shhh/app/short_name.rb
shhh-1.6.5 lib/shhh/app/short_name.rb
shhh-1.6.4 lib/shhh/app/short_name.rb
shhh-1.6.3 lib/shhh/app/short_name.rb
shhh-1.6.2 lib/shhh/app/short_name.rb
shhh-1.6.1 lib/shhh/app/short_name.rb
shhh-1.5.4 lib/shhh/app/short_name.rb