Skip to content

Commit

Permalink
Cleanup comment cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-collier committed Jan 24, 2020
1 parent 3242fe3 commit 0c68ba8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
8 changes: 4 additions & 4 deletions app/services/hyrax/characterizer.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module Hyrax
##
# @abstract Propogates visibility from a provided object (e.g. a Work) to some
# group of its members (e.g. file_sets).
# @abstract Determins which characterizer to run based on the file_set type
# allowing implementation of Valkyrie file_sets
class Characterizer
##
# @param source [#visibility] the object to propogate visibility from
# @param source: the object to run a characterizer on
#
# @return [#propogate]
# @return [#characterize]
def self.for(source:)
case source
when Hyrax::FileSetBehavior # ActiveFedora
Expand Down
8 changes: 4 additions & 4 deletions app/services/hyrax/file_set_characterizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,23 +2,23 @@

module Hyrax
##
# Propogates visibility from a given Work to its FileSets
# Characterizes an ActiveFedora based FileSet
class FileSetCharacterizer
##
# @!attribute [rw] source
# @return [#visibility]
# @return [#characterize]
attr_accessor :source

##
# @param source [#visibility] the object to propogate visibility from
# @param source the object to characterize
def initialize(source:)
self.source = source
end

##
# @return [void]
#
# @raise [RuntimeError] if visibility propogation fails
# @raise [RuntimeError] if FileSet is missing the characterization_proxy
def characterize
Hydra::Works::CharacterizationService.run(characterization_proxy, filepath)
Rails.logger.debug "Ran characterization on #{characterization_proxy.id} (#{characterization_proxy.mime_type})"
Expand Down
6 changes: 3 additions & 3 deletions app/services/hyrax/resource_characterizer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

module Hyrax
##
# Propogates visibility from a given Work to its FileSets
# Characterizes a Valkyrie based FileSet
class ResourceCharacterizer
##
# @!attribute [rw] source
# @return [#visibility]
# @return [#characterize]
attr_accessor :source

##
# @param source [#visibility] the object to propogate visibility from
# @param source the object to characterize
def initialize(source:)
self.source = source
end
Expand Down

0 comments on commit 0c68ba8

Please sign in to comment.