Class: OpenFlashChart::MenuItem
- Inherits:
-
Base
- Object
- Base
- OpenFlashChart::MenuItem
- Defined in:
- lib/plugins/open_flash_chart/lib/open_flash_chart/menu.rb
Instance Method Summary (collapse)
-
- (MenuItem) initialize(text, javascript_function_name, args = {})
constructor
A new instance of MenuItem.
Methods inherited from Base
#<<, #add_element, #append_value, #attach_to_right_y_axis, #method_missing, #render, #set_colours, #set_key, #set_offset, #set_range, #set_tooltip, #to_json2
Constructor Details
- (MenuItem) initialize(text, javascript_function_name, args = {})
Returns a new instance of MenuItem
4 5 6 7 8 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/menu.rb', line 4 def initialize(text, javascript_function_name, args={}) @type = "text" @text = text @javascript_function_name = javascript_function_name end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenFlashChart::Base