Class: Plotrb::Scale::DataRef

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/plotrb/scales.rb

Overview

A data reference specifies the field for a given scale property

Instance Method Summary collapse

Methods included from Base

#add_attributes, #attributes, #classify, #collect_attributes, #define_boolean_attribute, #define_boolean_attributes, #define_multi_val_attribute, #define_multi_val_attributes, #define_single_val_attribute, #define_single_val_attributes, #defined_attributes, included, #set_attributes

Constructor Details

#initialize(&block) ⇒ DataRef

TODO: Support group



330
331
332
333
334
# File 'lib/plotrb/scales.rb', line 330

def initialize(&block)
  define_single_val_attributes(:data, :field)
  self.instance_eval(&block) if block
  self
end