Parent

Methods

Class Index

Quicksearch

Ziya::Charts::Support::Text

Text component to draw text on the chart. Must be set up within the draw component. See www.maani.us/xml_charts/index.php?menu=Reference&submenu=draw for additional documentation, examples and futher detail.

Public Instance Methods

flatten( xml ) click to toggle source


Dump has_attribute into xml element

    # File lib/ziya/charts/support/text.rb, line 19
19:     def flatten( xml )
20:       opts = options.clone
21:       text = opts.delete( :text )
22:       xml.text( opts ) { |x| x.text!( text.to_s ) }
23:     end

secsequence

--- SEC00134

seccomment

--- ""

method_list

--- 
- methods: 
  - visibility: public
    aref: M000083
    name: flatten
    sourcecode: "    <span class=\"ruby-comment cmt\"># File lib/ziya/charts/support/text.rb, line 19</span>\n\
      19:     <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">flatten</span>( <span class=\"ruby-identifier\">xml</span> )\n\
      20:       <span class=\"ruby-identifier\">opts</span> = <span class=\"ruby-identifier\">options</span>.<span class=\"ruby-identifier\">clone</span>\n\
      21:       <span class=\"ruby-identifier\">text</span> = <span class=\"ruby-identifier\">opts</span>.<span class=\"ruby-identifier\">delete</span>( <span class=\"ruby-identifier\">:text</span> )\n\
      22:       <span class=\"ruby-identifier\">xml</span>.<span class=\"ruby-identifier\">text</span>( <span class=\"ruby-identifier\">opts</span> ) { <span class=\"ruby-operator\">|</span><span class=\"ruby-identifier\">x</span><span class=\"ruby-operator\">|</span> <span class=\"ruby-identifier\">x</span>.<span class=\"ruby-identifier\">text!</span>( <span class=\"ruby-identifier\">text</span>.<span class=\"ruby-identifier\">to_s</span> ) }\n\
      23:     <span class=\"ruby-keyword kw\">end</span>"
    m_desc: |-
      <hr size="10"></hr><p>
      Dump has_attribute into xml element
      </p>
    params: ( xml )
  category: Instance
  type: Public

sectitle

--- 

[Validate]

Generated with the Darkfish Rdoc Generator.