Sha256: b41f38db3674c10c2b36158901a77998104c360a95fdba593996f805fb0bdc8a
Contents?: true
Size: 315 Bytes
Versions: 1
Compression:
Stored size: 315 Bytes
Contents
module PrySingular Options = Struct.new(:only, :except) { def initialize(**options) super(Array(options[:only]), Array(options[:except])) end def remove_methods_other_than_only(methods) methods & only end def remove_except_methods(methods) methods - except end } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pry-singular-0.1.8 | lib/pry-singular/option.rb |