class Alfalfa
Constants
- PWD_ARR
Public Class Methods
is_gemfile?()
click to toggle source
# File lib/alfalfa.rb, line 8 def self.is_gemfile? # User may call this to see if the Gemfile is visible. puts Alfalfa::PWD_ARR.include?("Gemfile") end
sort_gemfile()
click to toggle source
# File lib/alfalfa.rb, line 13 def self.sort_gemfile # If the current directory has a Gemfile, set its contents to file and call partition. if Alfalfa::PWD_ARR.include?("Gemfile") file = File.read("Gemfile") File.open("Gemfile") Alfalfa::Gem.partition_file(file) else puts "No Gemfile found!" end end