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.12.4 lib/para/generators/name_helpers.rb
para-0.12.3 lib/para/generators/name_helpers.rb
para-0.12.2 lib/para/generators/name_helpers.rb
para-0.12.1 lib/para/generators/name_helpers.rb
para-0.12.0 lib/para/generators/name_helpers.rb
para-0.11.4 lib/para/generators/name_helpers.rb
para-0.11.3 lib/para/generators/name_helpers.rb
para-0.11.2 lib/para/generators/name_helpers.rb
para-0.11.1 lib/para/generators/name_helpers.rb
para-0.11.0 lib/para/generators/name_helpers.rb
para-0.10.0 lib/para/generators/name_helpers.rb
para-0.9.4 lib/para/generators/name_helpers.rb
para-0.9.3.3 lib/para/generators/name_helpers.rb
para-0.9.3.2 lib/para/generators/name_helpers.rb
para-0.9.3.1 lib/para/generators/name_helpers.rb
para-0.9.2 lib/para/generators/name_helpers.rb
para-0.9.0 lib/para/generators/name_helpers.rb
para-0.8.15 lib/para/generators/name_helpers.rb
para-0.8.14 lib/para/generators/name_helpers.rb
para-0.8.13 lib/para/generators/name_helpers.rb