Class: CSSPool::Terms::Resolution

Inherits:
Node
  • Object
show all
Defined in:
lib/csspool/terms/resolution.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#inner_end_pos, #inner_start_pos, #outer_end_pos, #outer_start_pos

Instance Method Summary collapse

Methods inherited from Node

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

Constructor Details

#initialize(number, unit, parse_location = {}) ⇒ Resolution

Returns a new instance of Resolution.



6
7
8
9
10
# File 'lib/csspool/terms/resolution.rb', line 6

def initialize(number, unit, parse_location = {})
  @number = number
  @unit = unit
  @parse_location = parse_location
end

Instance Attribute Details

#numberObject

Returns the value of attribute number.



4
5
6
# File 'lib/csspool/terms/resolution.rb', line 4

def number
  @number
end

#parse_locationObject

Returns the value of attribute parse_location.



4
5
6
# File 'lib/csspool/terms/resolution.rb', line 4

def parse_location
  @parse_location
end

#unitObject

Returns the value of attribute unit.



4
5
6
# File 'lib/csspool/terms/resolution.rb', line 4

def unit
  @unit
end