Class: Image
- Inherits:
-
Gosu::Image
- Object
- Gosu::Image
- Image
- Defined in:
- lib/rubyhop.rb
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(filename) ⇒ Image
constructor
A new instance of Image.
Constructor Details
#initialize(filename) ⇒ Image
Returns a new instance of Image.
25 26 27 28 |
# File 'lib/rubyhop.rb', line 25 def initialize filename @filename = filename super Rubyhop.instance, get_my_file(filename) end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename.
24 25 26 |
# File 'lib/rubyhop.rb', line 24 def filename @filename end |
Class Method Details
.from_text(message, font = Gosu::default_font_name, size = 24) ⇒ Object
30 31 32 |
# File 'lib/rubyhop.rb', line 30 def self.from_text , font = Gosu::default_font_name, size = 24 super Rubyhop.instance, , font, size end |