Class: Swift::Playground::Stylesheet

Inherits:
Asset
  • Object
show all
Defined in:
lib/swift/playground/assets/stylesheet.rb

Instance Attribute Summary

Attributes inherited from Asset

#content

Instance Method Summary collapse

Methods inherited from Asset

#filename, #initialize

Methods included from Util::SourceIO

#source_as_io

Constructor Details

This class inherits a constructor from Swift::Playground::Asset

Instance Method Details

#save(destination_path, number) ⇒ Object



8
9
10
11
12
13
14
15
# File 'lib/swift/playground/assets/stylesheet.rb', line 8

def save(destination_path, number)
  save_content

  self.content = Sass.compile(content)
  super(destination_path, number)

  restore_content
end