Class: Savagery::Spriter
- Inherits:
-
Object
- Object
- Savagery::Spriter
- Defined in:
- lib/savagery/spriter.rb,
lib/savagery/spriter/image.rb
Defined Under Namespace
Classes: Image
Instance Attribute Summary collapse
-
#path ⇒ Object
Returns the value of attribute path.
Instance Method Summary collapse
-
#initialize(path) ⇒ Spriter
constructor
A new instance of Spriter.
- #sprite! ⇒ Object
Constructor Details
#initialize(path) ⇒ Spriter
Returns a new instance of Spriter.
5 6 7 |
# File 'lib/savagery/spriter.rb', line 5 def initialize path self.path = path end |
Instance Attribute Details
#path ⇒ Object
Returns the value of attribute path.
9 10 11 |
# File 'lib/savagery/spriter.rb', line 9 def path @path end |
Instance Method Details
#sprite! ⇒ Object
11 12 13 |
# File 'lib/savagery/spriter.rb', line 11 def sprite! File.write sprite_path, sprite end |