Rails::Generators::AppBase::GemfileEntry Ruby on Rails 5.1.2 Class Rails::Generators::AppBase::GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out) railties/lib/rails/generators/app_base.rb Methods G github N new P path V version, version Class Public methods github(name, github, branch = nil, comment = nil) Link Source: show | on GitHub # File railties/lib/rails/generators/app_base.rb, line 214 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 new(name, version, comment, options = {}, commented_out = false) Link Source: show | on GitHub # File railties/lib/rails/generators/app_base.rb, line 210 def initialize(name, version, comment, options = {}, commented_out = false) super end path(name, path, comment = nil) Link Source: show | on GitHub # File railties/lib/rails/generators/app_base.rb, line 226 def self.path(name, path, comment = nil) new(name, nil, comment, path: path) end version(name, version, comment = nil) Link Source: show | on GitHub # File railties/lib/rails/generators/app_base.rb, line 222 def self.version(name, version, comment = nil) new(name, version, comment) end Instance Public methods version() Link Source: show | on GitHub # File railties/lib/rails/generators/app_base.rb, line 230 def version version = super if version.is_a?(Array) version.join("', '") else version end end