class WPAR::Wrapper::Lswpar
Public Instance Methods
filter(name)
click to toggle source
# File lib/wpars/wrapper/lswpar.rb, line 15 def filter(name) list.select { |o| o.name == name } end
list() { |obj| ... }
click to toggle source
# File lib/wpars/wrapper/lswpar.rb, line 5 def list data = parse(External.cmd(cmd: @command)) if block_given? return data.each { |obj| yield obj } else return data end end