Class: SilkLayout::Layout::Context
- Inherits:
-
Object
- Object
- SilkLayout::Layout::Context
- Defined in:
- lib/silk_layout/layout/context.rb
Instance Attribute Summary collapse
-
#width ⇒ Object
readonly
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(width:) ⇒ Context
constructor
A new instance of Context.
Constructor Details
#initialize(width:) ⇒ Context
Returns a new instance of Context.
8 9 10 |
# File 'lib/silk_layout/layout/context.rb', line 8 def initialize(width:) @width = width end |
Instance Attribute Details
#width ⇒ Object (readonly)
Returns the value of attribute width.
6 7 8 |
# File 'lib/silk_layout/layout/context.rb', line 6 def width @width end |