Sha256: 9d1fb357dbc0779ac34cac339601ad931cb7c7789f268b71f25f89d710fc41a2

Contents?: true

Size: 181 Bytes

Versions: 28

Compression:

Stored size: 181 Bytes

Contents

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

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
sym-3.0.2 lib/sym/app/short_name.rb
sym-3.0.1 lib/sym/app/short_name.rb
sym-3.0.0 lib/sym/app/short_name.rb
sym-2.10.0 lib/sym/app/short_name.rb
sym-2.8.5 lib/sym/app/short_name.rb
sym-2.8.4 lib/sym/app/short_name.rb
sym-2.8.2 lib/sym/app/short_name.rb
sym-2.8.1 lib/sym/app/short_name.rb
sym-2.8.0 lib/sym/app/short_name.rb
sym-2.7.0 lib/sym/app/short_name.rb
sym-2.6.3 lib/sym/app/short_name.rb
sym-2.6.2 lib/sym/app/short_name.rb
sym-2.6.1 lib/sym/app/short_name.rb
sym-2.6.0 lib/sym/app/short_name.rb
sym-2.5.3 lib/sym/app/short_name.rb
sym-2.5.1 lib/sym/app/short_name.rb
sym-2.5.0 lib/sym/app/short_name.rb
sym-2.4.3 lib/sym/app/short_name.rb
sym-2.3.0 lib/sym/app/short_name.rb
sym-2.2.1 lib/sym/app/short_name.rb