BVB Source Codes

hologram Show utils.rb Source code

Return Download hologram: download utils.rb Source code - Download hologram Source code - Type:.rb
  1. module Hologram
  2.   module Utils
  3.     def self.get_markdown_renderer(custom_markdown = nil)
  4.       return MarkdownRenderer if custom_markdown.nil?
  5.  
  6.       md_file = Pathname.new(custom_markdown).realpath
  7.       load md_file
  8.       renderer_class = self.get_class_name(custom_markdown)
  9.       DisplayMessage.info("Custom markdown renderer #{renderer_class} loaded.")
  10.       Module.const_get(renderer_class)
  11.     rescue LoadError => e
  12.       DisplayMessage.error("Could not load #{custom_markdown}.")
  13.     rescue NameError => e
  14.       DisplayMessage.error("Class #{renderer_class} not found in #{custom_markdown}.")
  15.     end
  16.  
  17.     def self.get_class_name(file)
  18.       File.basename(file, '.rb').split(/_/).map(&:capitalize).join
  19.     end
  20.   end
  21. end
  22.  
downloadutils.rb Source code - Download hologram Source code
Related Source Codes/Software:
www.html5rocks.com - ....a top-notch resource for web developer 2017-05-12
MTStatusBarOverlay - A custom iOS status bar overlay seen in Apps like ... 2017-05-12
blueprint - Reverse engineer server configuration ... 2017-05-12
PullToRefresh - A simple iPhone TableViewController for adding the... 2017-05-12
mrjob - Run MapReduce jobs on Hadoop or Amazon Web Service... 2017-05-11
isso - a Disqus alternative https:... 2017-05-12
python3-cookbook - "The Python Cookbook" 3 rd Edition Translatio 2017-05-12
TSA-Travel-Sentry-master-keys - 3D reproduction of TSA Master key 2017-05-12
fatfree - A powerful yet easy-to-use PHP micro-framework des... 2017-05-13
rolify - Role management library with the resource scoping 2017-05-13
CRYENGINE - CRYENGINE is a powerful real-time game development... 2017-06-11
postal - 2017-06-11
reactide - Reactide is the first dedicated IDE for React web ... 2017-06-11
rkt - rkt is a pod-native container engine for Linux. It... 2017-06-11
uWebSockets - Tiny WebSockets https://for... 2017-06-11
realworld - TodoMVC for the RealWorld - Exemplary fullstack Me... 2017-06-11
goreplay - GoReplay is an open-source tool for capturing and ... 2017-06-10
pyenv - Simple Python version management 2017-06-10
redux-saga - An alternative side effect model for Redux apps ... 2017-06-10
angular-starter - 2017-06-10

 Back to top