Sha256: 9fb3ba2eb02e47ede16e74f78239153d16cd8e6d99ba55801bc0031a85fe0436
Contents?: true
Size: 301 Bytes
Versions: 1
Compression:
Stored size: 301 Bytes
Contents
module NewsStand class Validator REQUIRED_METHODS = [:all, :get, :set] def initialize(adapter) @adapter = adapter end def valid? REQUIRED_METHODS.each do |meth| return false unless @adapter.instance_methods.include?(meth) end true end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
news_stand-0.1.1 | lib/news_stand/validator.rb |