Class: Carbuncle::AnimatedSprite::Animation
- Defined in:
- gems/carbuncle-graphics/mrblib/animated_sprite.rb
Overview
This class represents an animation
Constant Summary
Constants included from Enumerable
Instance Attribute Summary collapse
-
#delay ⇒ Object
Returns the value of attribute delay.
-
#frames ⇒ Object
Returns the value of attribute frames.
-
#name ⇒ Object
Returns the value of attribute name.
Method Summary
Methods inherited from Struct
#==, #[], #[]=, #_inspect, #dig, #each, #each_pair, #eql?, #initialize, #initialize_copy, #inspect, #length, #members, #select, #size, #to_a, #to_h, #values, #values_at
Methods included from Enumerable
__update_hash, #all?, #any?, #chain, #collect, #count, #cycle, #detect, #drop, #drop_while, #each_cons, #each_slice, #each_with_index, #each_with_object, #entries, #filter_map, #find_all, #find_index, #first, #flat_map, #grep, #group_by, #hash, #include?, #inject, #lazy, #max, #max_by, #min, #min_by, #minmax, #minmax_by, #none?, #one?, #partition, #reject, #reverse_each, #sort, #sort_by, #sum, #take, #take_while, #tally, #to_h, #uniq, #zip
Constructor Details
This class inherits a constructor from Struct
Instance Attribute Details
#delay ⇒ Object
Returns the value of attribute delay
7 8 9 |
# File 'gems/carbuncle-graphics/mrblib/animated_sprite.rb', line 7 def delay @delay end |
#frames ⇒ Object
Returns the value of attribute frames
7 8 9 |
# File 'gems/carbuncle-graphics/mrblib/animated_sprite.rb', line 7 def frames @frames end |
#name ⇒ Object
Returns the value of attribute name
7 8 9 |
# File 'gems/carbuncle-graphics/mrblib/animated_sprite.rb', line 7 def name @name end |