Module: Sass::Script::Functions

Defined in:
lib/children-of-ie.rb

Overview

Sass script string parsing

Instance Method Summary collapse

Instance Method Details

#children_of_ie_nth(input) ⇒ Object



6
7
8
9
10
11
# File 'lib/children-of-ie.rb', line 6

def children_of_ie_nth(input)
  n = "n"
  b = ""
  result = input.value.gsub(n, b)
  Sass::Script::Number.new(result.to_i)
end