Class: Bijou::Frame

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

Overview

Represents a single component in a component/container chain.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



13
14
15
# File 'lib/bijou/context.rb', line 13

def args
  @args
end

#componentObject (readonly)

Returns the value of attribute component.



14
15
16
# File 'lib/bijou/context.rb', line 14

def component
  @component
end

#outputObject (readonly)

Returns the value of attribute output.



12
13
14
# File 'lib/bijou/context.rb', line 12

def output
  @output
end

Instance Method Details

#flushObject



22
23
24
25
26
# File 'lib/bijou/context.rb', line 22

def flush
  s = @output
  @output = ''
  s
end