123456789_123456789_123456789_123456789_123456789_

Class: Rails::Generators::AppBase::GemfileEntry

Relationships & Source Files
Inherits: Struct
  • ::Object
Defined in: railties/lib/rails/generators/app_base.rb

Class Method Summary

Instance Attribute Summary

Constructor Details

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

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 240

def initialize(name, version, comment, options = {}, commented_out = false)
  super
end

Class Method Details

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

[ GitHub ]

  
# 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

.path(name, path, comment = nil)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 256

def self.path(name, path, comment = nil)
  new(name, nil, comment, path: path)
end

.version(name, version, comment = nil)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 252

def self.version(name, version, comment = nil)
  new(name, version, comment)
end

Instance Attribute Details

#comment (rw)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 239

class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out)

#commented_out (rw)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 239

class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out)

#name (rw)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 239

class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out)

#options (rw)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 239

class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out)

#version (rw)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 260

class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out)

#version=(value) (rw)

[ GitHub ]

  
# File 'railties/lib/rails/generators/app_base.rb', line 239

class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out)