lib/timeline.rb in muruca_widgets-0.2.0 vs lib/timeline.rb in muruca_widgets-0.2.1

- old
+ new

@@ -4,15 +4,15 @@ # Contains all the data and settings for a single Simile timeline class Timeline # The main options that can be given to the timeline are # - # [*config*] - The configuration for timeline, including the bands configuration. - # This will be directly passed on to timline.js, see there for more - # documentation. If no :bands option is given, a default band - # is created for the timeline. - # [*data*] - A TimelineSource object containing the data for this timeline OR a - # hash with the options to create the TimelineSource + # [*config*] The configuration for timeline, including the bands configuration. + # This will be directly passed on to timline.js, see there for more + # documentation. If no :bands option is given, a default band + # is created for the timeline. + # [*data*] A TimelineSource object containing the data for this timeline OR a + # hash with the options to create the TimelineSource def initialize(options) raise(ArgumentError, 'Expecting an option hash here.') unless(options.is_a?(Hash)) options.to_options! raise(ArgumentError, 'Expecting some data here') unless(options[:data]) raise(ArgumentError, 'Expecting the configuration here') unless(options[:config]) \ No newline at end of file