Sha256: c1f914aac517748de94f6791cb913f4e8f9e3c5ca42f67eecbd2926aa2d138a9
Contents?: true
Size: 652 Bytes
Versions: 12
Compression:
Stored size: 652 Bytes
Contents
module GeoConcerns module GeoWorksHelper # Returns human readable name of child geo work type. # @param [GeoConcernsShowPresenter] geo work show presenter # @return[String] def child_geo_works_type(presenter) case presenter.class.to_s when 'GeoConcerns::ImageWorkShowPresenter' 'Raster' when 'GeoConcerns::RasterWorkShowPresenter' 'Vector' end end # Returns human readable name of geo work type. # @param [GeoConcernsShowPresenter] geo work show presenter # @return[String] def geo_work_type(presenter) presenter.human_readable_type.sub('Work', '') end end end
Version data entries
12 entries across 12 versions & 1 rubygems