Class: Ziya::Gauges::Support::Text
- Inherits:
-
Base
- Object
- Charts::Support::Base
- Base
- Ziya::Gauges::Support::Text
- Defined in:
- lib/ziya/gauges/support/text.rb
Instance Method Summary collapse
Methods inherited from Base
Methods included from YamlHelpers::Gauges
Methods included from YamlHelpers::Base
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 = txt = opts.delete( :text ) xml.text( opts ) do xml.text! txt.to_s end end |