Top Level Namespace
Defined Under Namespace
Modules: DataLayerProcessorNoiseRemoval, DataLayerProcessorSimpleSmoother, GraphImageDrawerModule Classes: Array, DataLayer, DataLayerProcessor, DataPoint, GraphAxis, GraphColorLibrary, GraphDataProcessor, GraphImageDrawer, GraphImageDrawerChunky, GraphImageDrawerRasem, GraphImageDrawerRmagick, TechnicalGraph
Instance Method Summary collapse
- #gem_available?(name) ⇒ Boolean
-
#rmagick_installed? ⇒ Boolean
Check if rmagick is installed.
Instance Method Details
#gem_available?(name) ⇒ Boolean
1 2 3 4 5 6 7 |
# File 'lib/technical_graph/gem.rb', line 1 def gem_available?(name) Gem::Specification.find_by_name(name) rescue Gem::LoadError false rescue Gem.available?(name) end |
#rmagick_installed? ⇒ Boolean
Check if rmagick is installed
10 11 12 |
# File 'lib/technical_graph/gem.rb', line 10 def rmagick_installed? gem_available?('rmagick') end |