instance method scalar

Ruby on Rails 2.2.3

Last seen in v2.2.3 Private — implementation detail, not part of the public API

Signature

scalar(value)

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

value

Value to be checked.

Parameters

value req
Source
# File activesupport/lib/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

Defined in activesupport/lib/active_support/vendor/xml-simple-1.0.11/xmlsimple.rb line 861 · View on GitHub · Improve this page · Find usages on GitHub

Defined in XmlSimple

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close