instance method
write_specification
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
write_specification(spec)
No documentation comment.
Parameters
-
specreq
Source
# File railties/lib/rails/gem_dependency.rb, line 263
def write_specification(spec)
# copy the gem's specification into GEMDIR/.specification so that
# we can access information about the gem on deployment systems
# without having the gem installed
File.open(unpacked_specification_filename, 'w') do |file|
file.puts spec.to_yaml
end
end
Defined in railties/lib/rails/gem_dependency.rb line 263
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::GemDependency