Sha256: 9c62c352270a3c99c09f327e3f91efd950ba2aad8593b79aeff9d40ab39030f6

Contents?: true

Size: 195 Bytes

Versions: 8

Compression:

Stored size: 195 Bytes

Contents

class Mediator
  class Processor
    def empty? value, options = nil
      !(options && options[:empty]) &&
        (value.nil? || (value.respond_to?(:empty?) && value.empty?))
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
mediator-0.4.2 lib/mediator/processor.rb
mediator-0.4.1 lib/mediator/processor.rb
mediator-0.4.0 lib/mediator/processor.rb
mediator-0.3.1 lib/mediator/processor.rb
mediator-0.3.0 lib/mediator/processor.rb
mediator-0.2.0 lib/mediator/processor.rb
mediator-0.1.1 lib/mediator/processor.rb
mediator-0.1.0 lib/mediator/processor.rb