Sha256: 2b42353e8dfac1397d013184708620ad8f6975722ccdbdfdcb81acba7ba27e92

Contents?: true

Size: 378 Bytes

Versions: 2

Compression:

Stored size: 378 Bytes

Contents

module RDee
  module MobileDevices

    def mobile?(value)
      mobile_targets.include? target_for(value)
    end

    
    def mobile_targets
      mobile_browsers.keys
    end

    def mobile_browsers
      @mobile_browsers ||= {
        ios: 'Safari'
      }
    end

    def mobile_platform
      @mobile_platform ||= {
          ios: 'iOS'
      }
    end
    
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
RDee-0.8 lib/rdee/mobile_devices.rb
RDee-0.7 lib/rdee/mobile_devices.rb