Class: Ziya::Gauges::Support::Text

Inherits:
Base show all
Defined in:
lib/ziya/gauges/support/text.rb

Instance Method Summary collapse

Methods inherited from Base

#to_comp_yaml

Methods included from YamlHelpers::Gauges

#dial, #dials, #gauge

Methods included from YamlHelpers::Base

#clazz, #indent

Methods inherited from Charts::Support::Base

#==, attributes, #attributes_for, #configured?, has_attribute, #has_sub_components, #initialize, #merge, #options, #options_as_string

Constructor Details

This class inherits a constructor from Ziya::Charts::Support::Base

Instance Method Details

#flatten(xml) ⇒ Object



13
14
15
16
17
18
19
# File 'lib/ziya/gauges/support/text.rb', line 13

def flatten( xml )
  opts = options
  txt = opts.delete( :text )
  xml.text( opts ) do
    xml.text! txt.to_s
  end
end