Sha256: 78fdc3f1accd9ec6dac4ad2d99ca2a997e0950e31a2e04ec98fe99d9e284fd87

Contents?: true

Size: 235 Bytes

Versions: 17

Compression:

Stored size: 235 Bytes

Contents

require 'sass'
module Sass::Script::Functions
  
  # Converts a number into an integer (Useful for converting percentages etc)
  def integer(number)
    assert_type number, :Number
    Sass::Script::Number.new(number.to_i)
  end
  
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
i0n_rails3_generators-0.2.19 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.18 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.17 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.16 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.15 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.14 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.13 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.12 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.11 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.10 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.9 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.8 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.7 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.6 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.5 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.4 lib/generators/i0n/layout/templates/lib/sass_extensions.rb
i0n_rails3_generators-0.2.3 lib/generators/i0n/layout/templates/lib/sass_extensions.rb