Methods

Class Public methods

github(name, github, branch = nil, comment = nil)

📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 244
        def self.github(name, github, branch = nil, comment = nil)
          if branch
            new(name, nil, comment, github: github, branch: branch)
          else
            new(name, nil, comment, github: github)
          end
        end
🔎 See on GitHub

new(name, version, comment, options = {}, commented_out = false)

📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 240
        def initialize(name, version, comment, options = {}, commented_out = false)
          super
        end
🔎 See on GitHub

path(name, path, comment = nil)

📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 256
        def self.path(name, path, comment = nil)
          new(name, nil, comment, path: path)
        end
🔎 See on GitHub

version(name, version, comment = nil)

📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 252
        def self.version(name, version, comment = nil)
          new(name, version, comment)
        end
🔎 See on GitHub

Instance Public methods

version()

📝 Source code
# File railties/lib/rails/generators/app_base.rb, line 260
        def version
          version = super

          if version.is_a?(Array)
            version.join("', '")
          else
            version
          end
        end
🔎 See on GitHub