From cdbc3ee10209d9c41b609aedde44d66173aece3b Mon Sep 17 00:00:00 2001 From: Stormwind Date: Thu, 19 Feb 2015 07:28:35 +0100 Subject: [PATCH] Add some apidoc for rubella.rb --- lib/rubella.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/rubella.rb b/lib/rubella.rb index d290f0e..fa401d2 100644 --- a/lib/rubella.rb +++ b/lib/rubella.rb @@ -46,14 +46,29 @@ module Rubella end + # Creates a heatmap in the on construction given format. The data must be + # in the also on construction given formate. + # + # @param data string The data, which should be used + # @return binaryblob An output representation of the heatmap def create_from_string data process @input.string data end + # Creates a heatmap in the on construction given format. The data must be + # in the also on construction given formate. + # + # @param file_name string + # @return binaryblob An output representation of the heatmap def create_from_file file_name process @input.file file_name end + # Processes the creation of the heatmap, after the construction of the input + # object. So the input object is given here as parameter. + # + # @param inpt Input The inputed data + # @return binaryblob An output representation of the heatmap def process inpt weight = @weighting.new 10 outpt = @output.new