Class: Scruffy::Renderers::Sparkline

Inherits:
Base
  • Object
show all
Defined in:
lib/scruffy/renderers/sparkline.rb

Overview

Experimental, do not use.

Instance Attribute Summary

Attributes inherited from Base

#options

Attributes included from Helpers::Canvas

#components

Instance Method Summary collapse

Methods inherited from Base

#before_render, #initialize, #method_missing, #render

Methods included from Helpers::Canvas

#component, #remove, #reset_settings!

Constructor Details

This class inherits a constructor from Scruffy::Renderers::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Scruffy::Renderers::Base

Instance Method Details

#define_layoutObject



5
6
7
# File 'lib/scruffy/renderers/sparkline.rb', line 5

def define_layout
  self.components << Scruffy::Components::Graphs.new(:sparkline, :position => [0, 0], :size => [100, 100])                  
end