Class: CSS::MediaQueries::MediaQuery

Inherits:
Data
  • Object
show all
Includes:
Node
Defined in:
lib/css/media_queries/nodes.rb

Overview

‘modifier` is `nil`, `:not`, or `:only`. `type` is `nil` or a downcased string (’screen’, ‘print’, ‘all’, …). ‘condition` is `nil` or a media-condition node.

Instance Attribute Summary collapse

Instance Attribute Details

#conditionObject (readonly)

Returns the value of attribute condition

Returns:

  • (Object)

    the current value of condition



14
15
16
# File 'lib/css/media_queries/nodes.rb', line 14

def condition
  @condition
end

#modifierObject (readonly)

Returns the value of attribute modifier

Returns:

  • (Object)

    the current value of modifier



14
15
16
# File 'lib/css/media_queries/nodes.rb', line 14

def modifier
  @modifier
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



14
15
16
# File 'lib/css/media_queries/nodes.rb', line 14

def type
  @type
end