Module: Banzai::ReferenceParser

Defined in:
lib/banzai/reference_parser.rb,
lib/banzai/reference_parser/base_parser.rb,
lib/banzai/reference_parser/epic_parser.rb,
lib/banzai/reference_parser/user_parser.rb,
lib/banzai/reference_parser/issue_parser.rb,
lib/banzai/reference_parser/label_parser.rb,
lib/banzai/reference_parser/commit_parser.rb,
lib/banzai/reference_parser/design_parser.rb,
lib/banzai/reference_parser/project_parser.rb,
lib/banzai/reference_parser/snippet_parser.rb,
lib/banzai/reference_parser/issuable_parser.rb,
lib/banzai/reference_parser/iteration_parser.rb,
lib/banzai/reference_parser/milestone_parser.rb,
lib/banzai/reference_parser/commit_range_parser.rb,
lib/banzai/reference_parser/merge_request_parser.rb,
lib/banzai/reference_parser/external_issue_parser.rb,
lib/banzai/reference_parser/mentioned_user_parser.rb,
lib/banzai/reference_parser/mentioned_group_parser.rb,
lib/banzai/reference_parser/mentioned_project_parser.rb,
lib/banzai/reference_parser/directly_addressed_user_parser.rb

Defined Under Namespace

Classes: BaseParser, CommitParser, CommitRangeParser, DesignParser, DirectlyAddressedUserParser, EpicParser, ExternalIssueParser, IssuableParser, IssueParser, IterationParser, LabelParser, MentionedGroupParser, MentionedProjectParser, MentionedUserParser, MergeRequestParser, MilestoneParser, ProjectParser, SnippetParser, UserParser

Class Method Summary collapse

Class Method Details

.[](name) ⇒ Object

Returns the reference parser class for the given type

Example:

Banzai::ReferenceParser['issue']

This would return the `Banzai::ReferenceParser::IssueParser` class.


12
13
14
# File 'lib/banzai/reference_parser.rb', line 12

def self.[](name)
  const_get("#{name.to_s.camelize}Parser", false)
end