Methods

Class Index

Quicksearch

Ziya::Gauges::Support::Text

Public Instance Methods

flatten( xml ) click to toggle source

(Not documented)

    # File lib/ziya/gauges/support/text.rb, line 13
13:     def flatten( xml )
14:       opts = options
15:       txt = opts.delete( :text )
16:       xml.text( opts ) do
17:         xml.text! txt.to_s
18:       end
19:     end

secsequence

--- SEC00182

seccomment

--- ""

method_list

--- 
- methods: 
  - visibility: public
    aref: M000068
    name: flatten
    sourcecode: "    <span class=\"ruby-comment cmt\"># File lib/ziya/gauges/support/text.rb, line 13</span>\n\
      13:     <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">flatten</span>( <span class=\"ruby-identifier\">xml</span> )\n\
      14:       <span class=\"ruby-identifier\">opts</span> = <span class=\"ruby-identifier\">options</span>\n\
      15:       <span class=\"ruby-identifier\">txt</span> = <span class=\"ruby-identifier\">opts</span>.<span class=\"ruby-identifier\">delete</span>( <span class=\"ruby-identifier\">:text</span> )\n\
      16:       <span class=\"ruby-identifier\">xml</span>.<span class=\"ruby-identifier\">text</span>( <span class=\"ruby-identifier\">opts</span> ) <span class=\"ruby-keyword kw\">do</span>\n\
      17:         <span class=\"ruby-identifier\">xml</span>.<span class=\"ruby-identifier\">text!</span> <span class=\"ruby-identifier\">txt</span>.<span class=\"ruby-identifier\">to_s</span>\n\
      18:       <span class=\"ruby-keyword kw\">end</span>\n\
      19:     <span class=\"ruby-keyword kw\">end</span>"
    params: ( xml )
  category: Instance
  type: Public

sectitle

--- 

[Validate]

Generated with the Darkfish Rdoc Generator.