Sha256: 41c9a9dba241f839da55b71d31e759ee5eadcee8622539457b08f6bc1484a03a

Contents?: true

Size: 431 Bytes

Versions: 55

Compression:

Stored size: 431 Bytes

Contents

module Para
  module Generators
    module NameHelpers
      def plural_namespaced_path
        @plural_namespaced_path ||= File.join(*class_path, plural_name)
      end

      def singular_namespaced_path
        @singular_namespaced_path ||= File.join(*class_path, singular_name)
      end

      def namespaced_class_name
        @namespaced_class_name ||= [namespace, class_name].compact.join('::')
      end
    end
  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
para-0.8.12 lib/para/generators/name_helpers.rb
para-0.8.11 lib/para/generators/name_helpers.rb
para-0.8.10 lib/para/generators/name_helpers.rb
para-0.8.9 lib/para/generators/name_helpers.rb
para-0.8.8 lib/para/generators/name_helpers.rb
para-0.8.7 lib/para/generators/name_helpers.rb
para-0.8.5 lib/para/generators/name_helpers.rb
para-0.8.3.3 lib/para/generators/name_helpers.rb
para-0.8.3.2 lib/para/generators/name_helpers.rb
para-0.8.3.1 lib/para/generators/name_helpers.rb
para-0.8.3 lib/para/generators/name_helpers.rb
para-0.8.2.3 lib/para/generators/name_helpers.rb
para-0.8.2.2 lib/para/generators/name_helpers.rb
para-0.8.2.1 lib/para/generators/name_helpers.rb
para-0.8.2 lib/para/generators/name_helpers.rb
para-0.8.1 lib/para/generators/name_helpers.rb
para-0.8.0 lib/para/generators/name_helpers.rb
para-0.7.4.p1 lib/para/generators/name_helpers.rb
para-0.7.4 lib/para/generators/name_helpers.rb
para-0.7.3.p6 lib/para/generators/name_helpers.rb