Sha256: 61c8b94b4706c401be37456a58a067444ce48772026b571ab5c291ffcad2b794
Contents?: true
Size: 740 Bytes
Versions: 180
Compression:
Stored size: 740 Bytes
Contents
# frozen_string_literal: true require 'eac_ruby_utils/core_ext' module Avm module EacRubyBase1 module Bundler class Gemfile require_sub __FILE__, require_dependency: true class << self def from_file(path) new(path.read.each_line.map(&:rstrip)) end end common_constructor :lines # @return [Avm::EacRubyBase1::Bundler::Gemfile::Dependency] def dependency(gem_name) ::Avm::EacRubyBase1::Bundler::Gemfile::Dependency.new(self, gem_name) end def write(path) path.to_pathname.write(to_text) end def to_text lines.map { |line| "#{line}\n" }.join end end end end end
Version data entries
180 entries across 180 versions & 3 rubygems