class Object
Public Instance Methods
must_be_any_of!(*type_specifications)
click to toggle source
# File lib/omu_support/core_ext/object.rb, line 87 def must_be_any_of!(*type_specifications) Type_.must_be_any_of(self, *type_specifications) end
to_yaml_pretty()
click to toggle source
# File lib/omu_support/core_ext/object.rb, line 4 def to_yaml_pretty yaml = to_yaml line_width: -1 yaml.gsub!(/\s+$/, '') yaml.gsub!("\n-", "\n\n-") yaml.gsub!(/^( +)-/, '\\1 -') yaml << "\n" end