This file contains hidden or 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
| module Flipper | |
| module FlagRegistration | |
| # These functions are all memoized because they should be static for the | |
| # lifetime of a deployment (albeit they are really static to a Ruby process) | |
| def self.registered_flags | |
| @registered_flags ||= YAML.load_file("config/feature_flags.yml") | |
| end | |
| def self.flags_in_code | |
| @flags_in_code ||= begin |
This file contains hidden or 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
| require 'nokogiri' | |
| class SlackMarkdownConverter | |
| class << self | |
| def convert(html, options = {}) | |
| converter = new(options) | |
| converter.convert(html) | |
| end | |
| end |
OlderNewer