Class: Ravvi::Format
- Inherits:
-
Struct
- Object
- Struct
- Ravvi::Format
- Defined in:
- lib/ravvi.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#max_seconds ⇒ Object
Returns the value of attribute max_seconds.
-
#name ⇒ Object
Returns the value of attribute name.
-
#platform ⇒ Object
Returns the value of attribute platform.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height
9 10 11 |
# File 'lib/ravvi.rb', line 9 def height @height end |
#max_seconds ⇒ Object
Returns the value of attribute max_seconds
9 10 11 |
# File 'lib/ravvi.rb', line 9 def max_seconds @max_seconds end |
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/ravvi.rb', line 9 def name @name end |
#platform ⇒ Object
Returns the value of attribute platform
9 10 11 |
# File 'lib/ravvi.rb', line 9 def platform @platform end |
#width ⇒ Object
Returns the value of attribute width
9 10 11 |
# File 'lib/ravvi.rb', line 9 def width @width end |
Instance Method Details
#aspect ⇒ Object
10 11 12 13 |
# File 'lib/ravvi.rb', line 10 def aspect g = width.gcd(height) "#{width / g}:#{height / g}" end |