Sha256: 9d8351a08db12867440c7bb96ca1cf4e05ef88e96236704c610acc58c87dd747
Contents?: true
Size: 667 Bytes
Versions: 6
Compression:
Stored size: 667 Bytes
Contents
module YARD::Templates::Helpers module BaseHelper def format_object_title(object) if object.is_a?(YARD::CodeObjects::Cucumber::FeatureTags) "Tags" elsif object.is_a?(YARD::CodeObjects::Cucumber::StepTransformersObject) "Step Definitions and Transforms" elsif object.is_a?(YARD::CodeObjects::Cucumber::NamespaceObject) "#{format_object_type(object)}#{object.value ? ": #{object.value}" : ''}" else case object when YARD::CodeObjects::RootObject "Top Level Namespace" else format_object_type(object) + ": " + object.path end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems