Class: Object
- Inherits:
- BasicObject
- Defined in:
- lib/kramdown-plantuml/none_s.rb
Overview
Ruby’s Object class.
Instance Method Summary collapse
-
#none_s? ⇒ Boolean
Performs a case insensitive, trimmed comparison of the Object and the String ‘none’ and Symbol :none.
Instance Method Details
#none_s? ⇒ Boolean
Performs a case insensitive, trimmed comparison of the Object and the String ‘none’ and Symbol :none. Returns true if the comparison is true, otherwise false.
otherwise false.
11 12 13 14 15 16 |
# File 'lib/kramdown-plantuml/none_s.rb', line 11 def none_s? return false if nil? return true if self == :none to_s.strip.casecmp?('none') end |