Class: Symbol
- Defined in:
- lib/vendor/puppet/util/zaml.rb,
lib/vendor/puppet/util/monkey_patches.rb,
lib/vendor/puppet/util/monkey_patches.rb
Instance Method Summary collapse
- #<=>(other) ⇒ Object
- #__original_to_proc ⇒ Object
-
#intern ⇒ Object
Defined in 1.9, absent in 1.8, and used for compatibility in various places, typically in third party gems.
- #to_proc ⇒ Object
- #to_zaml(z) ⇒ Object
Instance Method Details
#<=>(other) ⇒ Object
20 21 22 |
# File 'lib/vendor/puppet/util/monkey_patches.rb', line 20 def <=> (other) self.to_s <=> other.to_s end |
#__original_to_proc ⇒ Object
131 |
# File 'lib/vendor/puppet/util/monkey_patches.rb', line 131 alias __original_to_proc to_proc |
#intern ⇒ Object
Defined in 1.9, absent in 1.8, and used for compatibility in various places, typically in third party gems.
144 145 146 |
# File 'lib/vendor/puppet/util/monkey_patches.rb', line 144 def intern self end |
#to_proc ⇒ Object
132 133 134 |
# File 'lib/vendor/puppet/util/monkey_patches.rb', line 132 def to_proc @my_proc ||= __original_to_proc end |
#to_zaml(z) ⇒ Object
217 218 219 220 |
# File 'lib/vendor/puppet/util/zaml.rb', line 217 def to_zaml(z) z.emit("!ruby/sym ") to_s.to_zaml(z) end |