Class: SilkLayout::Layout::Context

Inherits:
Object
  • Object
show all
Defined in:
lib/silk_layout/layout/context.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#widthObject (readonly)

Returns the value of attribute width.



6
7
8
# File 'lib/silk_layout/layout/context.rb', line 6

def width
  @width
end