Skip to content

Commit

Permalink
fixes for [#3704](crystal-lang/crystal#3704)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonKingsley committed Jan 10, 2017
1 parent 341bb6c commit 083ba4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions src/crass/sass2scss/converter.cr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Crass
module Sass2Scss

def self.convert(input : T, output : String?, options : Crass::Sass2Scss::Options)
def self.convert(input : (File|String), output : String?, options : Crass::Sass2Scss::Options)
case input
when File
converter = Crass::Sass2Scss::SassFile.new(input, output, options.style)
Expand All @@ -13,11 +13,9 @@ module Crass

class Converter

@input : File|String

getter :scss

def initialize(@input : T, @output : String? = nil, @options : Int32 = 0)
def initialize(@input : (File|String), @output : String? = nil, @options : Int32 = 0)
@scss = ""
end

Expand Down
2 changes: 1 addition & 1 deletion src/crass/sass2scss/converter/file.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module Crass
def initialize(input : File, output : String? = nil, options : Int32 = 0)
super
lines = [] of String
input.each_line do |line|
input.each_line(false) do |line|
lines << line
end
convert_to_scss(lines.join)
Expand Down

0 comments on commit 083ba4e

Please sign in to comment.