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