Class: Bijou::Frame
- Inherits:
-
Object
- Object
- Bijou::Frame
- Defined in:
- lib/bijou/context.rb
Overview
Represents a single component in a component/container chain.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
- #flush ⇒ Object
-
#initialize(component) ⇒ Frame
constructor
A new instance of Frame.
Constructor Details
#initialize(component) ⇒ Frame
Returns a new instance of Frame.
16 17 18 19 20 |
# File 'lib/bijou/context.rb', line 16 def initialize(component) @component = component @output = '' @args = {} end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
13 14 15 |
# File 'lib/bijou/context.rb', line 13 def args @args end |
#component ⇒ Object (readonly)
Returns the value of attribute component.
14 15 16 |
# File 'lib/bijou/context.rb', line 14 def component @component end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
12 13 14 |
# File 'lib/bijou/context.rb', line 12 def output @output end |
Instance Method Details
#flush ⇒ Object
22 23 24 25 26 |
# File 'lib/bijou/context.rb', line 22 def flush s = @output @output = '' s end |