--- !ruby/object:RI::MethodDescription 
aliases: []

block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Typecasts a value based upon its type. For instance, if <tt>node</tt> has #type == &quot;integer&quot;, {{[node.typecast_value(&quot;12&quot;) #=&gt; 12]}}"
- !ruby/struct:SM::Flow::P 
  body: "@param value&lt;String&gt; The value that is being typecast."
- !ruby/struct:SM::Flow::P 
  body: "@details [:type options]"
- !ruby/struct:SM::Flow::VERB 
  body: "  &quot;integer&quot;::\n    converts <tt>value</tt> to an integer with #to_i\n  &quot;boolean&quot;::\n    checks whether <tt>value</tt>, after removing spaces, is the literal\n    &quot;true&quot;\n  &quot;datetime&quot;::\n    Parses <tt>value</tt> using Time.parse, and returns a UTC Time\n  &quot;date&quot;::\n    Parses <tt>value</tt> using Date.parse\n"
- !ruby/struct:SM::Flow::P 
  body: "@return &lt;Integer, TrueClass, FalseClass, Time, Date, Object&gt;"
- !ruby/struct:SM::Flow::VERB 
  body: "  The result of typecasting <tt>value</tt>.\n"
- !ruby/struct:SM::Flow::P 
  body: "@note"
- !ruby/struct:SM::Flow::VERB 
  body: "  If <tt>self</tt> does not have a &quot;type&quot; key, or if it's not one of the\n  options specified above, the raw <tt>value</tt> will be returned.\n"
full_name: REXMLUtilityNode#typecast_value
is_singleton: false
name: typecast_value
params: (value)
visibility: public
