Method: Pacer::Routes::RouteOperations#inspect_class_name
- Defined in:
- lib/pacer/route/mixin/route_operations.rb
#inspect_class_name ⇒ String
Creates a terse, human-friendly name for the class based on its element type, function and info.
110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 |
# File 'lib/pacer/route/mixin/route_operations.rb', line 110 def inspect_class_name s = case element_type when :vertex 'V' when :edge 'E' when :object 'Obj' when :mixed 'Elem' else element_type.to_s.capitalize end s = "#{s}-#{function.name.split('::').last.sub(/Filter|Route$/, '')}" if function s = "#{s} #{ @info }" if @info s end |