Class: CSSPool::CSS::Media

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/css/media.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#==, #accept, #children, #each, #hash, #to_css, #to_minified_css

Constructor Details

#initialize(name, parse_location) ⇒ Media

Returns a new instance of Media.



7
8
9
10
# File 'lib/csspool/css/media.rb', line 7

def initialize name, parse_location
  @name = name
  @parse_location = parse_location
end

Instance Attribute Details

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/csspool/css/media.rb', line 4

def name
  @name
end

#parse_locationObject

Returns the value of attribute parse_location.



5
6
7
# File 'lib/csspool/css/media.rb', line 5

def parse_location
  @parse_location
end