Class: RPG::AudioFile
- Inherits:
-
Object
- Object
- RPG::AudioFile
- Defined in:
- lib/rpg/audio_file.rb
Instance Attribute Summary (collapse)
-
- (Object) name
Returns the value of attribute name.
-
- (Object) pitch
Returns the value of attribute pitch.
-
- (Object) volume
Returns the value of attribute volume.
Instance Method Summary (collapse)
-
- (AudioFile) initialize(name = '', volume = 100, pitch = 100)
constructor
A new instance of AudioFile.
Constructor Details
- (AudioFile) initialize(name = '', volume = 100, pitch = 100)
Returns a new instance of AudioFile
3 4 5 6 7 |
# File 'lib/rpg/audio_file.rb', line 3 def initialize(name = '', volume = 100, pitch = 100) @name = name @volume = volume @pitch = pitch end |
Instance Attribute Details
- (Object) name
Returns the value of attribute name
8 9 10 |
# File 'lib/rpg/audio_file.rb', line 8 def name @name end |
- (Object) pitch
Returns the value of attribute pitch
10 11 12 |
# File 'lib/rpg/audio_file.rb', line 10 def pitch @pitch end |
- (Object) volume
Returns the value of attribute volume
9 10 11 |
# File 'lib/rpg/audio_file.rb', line 9 def volume @volume end |