Methods

Class/Module Index [+]

Quicksearch

Facter::Util::MonkeyPatches::Lines

Public Instance Methods

lines(separator = $/) click to toggle source
# File lib/facter/util/monkey_patches.rb, line 15
def lines(separator = $/)
  if block_given?
    self.each_line(separator) {|line| yield line }
    return self
  else
    return enum_for(:each_line, separator)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.