Class: Teacup::Limelight
- Inherits:
-
Object
- Object
- Teacup::Limelight
- Includes:
- StylesheetExtension
- Defined in:
- lib/teacup/limelight.rb
Instance Attribute Summary collapse
-
#styles ⇒ Object
readonly
Returns the value of attribute styles.
Instance Method Summary collapse
-
#initialize(&block) ⇒ Limelight
constructor
A new instance of Limelight.
- #method_missing(property, value = nil, &more_props) ⇒ Object
Methods included from StylesheetExtension
#app_size, #autoresize, #constrain, #constrain_above, #constrain_below, #constrain_bottom, #constrain_center_x, #constrain_center_y, #constrain_height, #constrain_left, #constrain_right, #constrain_size, #constrain_to_left, #constrain_to_right, #constrain_top, #constrain_width, #constrain_xy, #device, #device_is?, #flexible_bottom, #flexible_height, #flexible_left, #flexible_right, #flexible_top, #flexible_width, #flip, #iPad, #iPadRetina, #iPhone, #iPhone35, #iPhone4, #iPhone5, #iPhoneRetina, #identity, #pi, #rotate, #screen_size, #spin, #transform_layer, #transform_view, #twist
Constructor Details
#initialize(&block) ⇒ Limelight
Returns a new instance of Limelight.
6 7 8 9 |
# File 'lib/teacup/limelight.rb', line 6 def initialize(&block) @styles = {} instance_exec(&block) end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#styles ⇒ Object (readonly)
Returns the value of attribute styles.
4 5 6 |
# File 'lib/teacup/limelight.rb', line 4 def styles @styles end |