Class: Concord::FilenameGenerators::JavaProxyGenerator
- Inherits:
-
DefaultGenerator
- Object
- DefaultGenerator
- Concord::FilenameGenerators::JavaProxyGenerator
- Defined in:
- lib/concord/filename_generators/java_proxy_generator.rb
Class Method Summary collapse
Methods inherited from DefaultGenerator
Class Method Details
.generate_filename(resource) ⇒ Object
4 5 6 7 |
# File 'lib/concord/filename_generators/java_proxy_generator.rb', line 4 def self.generate_filename(resource) raise ::ArgumentError, "Resource must have valid content!" unless resource.content ::Digest::SHA1.hexdigest(resource.content) end |