Class: Browsable::PolicyDetector::Result

Inherits:
Data
  • Object
show all
Defined in:
lib/browsable/policy_detector.rb

Overview

policy: Symbol (a named policy, e.g. :modern)

| Hash ("browser" => "version")
| nil

note: why an allow_browser call could not be resolved; nil otherwise.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#noteObject (readonly)

Returns the value of attribute note

Returns:

  • (Object)

    the current value of note



24
25
26
# File 'lib/browsable/policy_detector.rb', line 24

def note
  @note
end

#policyObject (readonly)

Returns the value of attribute policy

Returns:

  • (Object)

    the current value of policy



24
25
26
# File 'lib/browsable/policy_detector.rb', line 24

def policy
  @policy
end

Instance Method Details

#resolved?Boolean

Returns:

  • (Boolean)


25
# File 'lib/browsable/policy_detector.rb', line 25

def resolved? = !policy.nil?