Class: Spinner::IndexController
- Inherits:
-
ModelController
- Object
- ModelController
- Spinner::IndexController
- Defined in:
- app/spinner/controllers/index_controller.rb
Instance Method Summary collapse
Instance Method Details
#color ⇒ Object
3 4 5 |
# File 'app/spinner/controllers/index_controller.rb', line 3 def color @color end |
#height ⇒ Object
24 25 26 |
# File 'app/spinner/controllers/index_controller.rb', line 24 def height (size * 52).round end |
#margin ⇒ Object
20 21 22 |
# File 'app/spinner/controllers/index_controller.rb', line 20 def margin (size * 3).round end |
#size ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'app/spinner/controllers/index_controller.rb', line 7 def size if @size s = ReactiveValue.new(@size).to_i s.with{|v| [[v, 0.25].max, 4].min } else 1 end end |
#width ⇒ Object
16 17 18 |
# File 'app/spinner/controllers/index_controller.rb', line 16 def width (size * 7).round end |