Class: XDep::Bundler::GemfileOutput

Inherits:
Output
  • Object
show all
Includes:
Ruby::Helper
Defined in:
lib/xdep/ruby.rb

Constant Summary

Constants included from Ruby::Helper

Ruby::Helper::COMMENT, Ruby::Helper::GEMFILE, Ruby::Helper::GEMSPEC, Ruby::Helper::KNOWN_DEPENDENCIES, Ruby::Helper::SPEC_MISSING

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Output

#initialize

Constructor Details

This class inherits a constructor from XDep::Output

Class Method Details

.accepts?(filename) ⇒ Boolean

Returns:

  • (Boolean)


120
121
122
# File 'lib/xdep/ruby.rb', line 120

def self.accepts?(filename)
  filename == "Gemfile"
end

Instance Method Details

#process(input, output) ⇒ Object



124
125
126
# File 'lib/xdep/ruby.rb', line 124

def process(input, output)
  output_ruby(input, output, GEMFILE)
end