private Method

XmlSimple.scalar(value)

Checks, if a certain value is a "scalar" value. Whatever that will be in Ruby … ;-)

value:Value to be checked.

Source Code

# File active_support/vendor/xml-simple-1.0.11/xmlsimple.rb, line 861
def scalar(value)
  return false if value.instance_of?(Hash) || value.instance_of?(Array)
  return true
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.