Created
February 5, 2018 11:17
-
-
Save khalilovcmd/ad9cad1ac86c432298c5f710cb59fc5f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PartRenderer < Renderer | |
PART_MAPPING = { | |
"note" => ::Services::Slack::Rendering::Parts::Note, | |
.... | |
.... | |
.... | |
} | |
def render(context) | |
PART_MAPPING[part_type].new(context).render | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment