Module: Deplate::CommonParticle

Included in:
BaseParticle
Defined in:
lib/deplate/common.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context.



346
347
348
# File 'lib/deplate/common.rb', line 346

def context
  @context
end

#current_headingObject

Returns the value of attribute current_heading.



345
346
347
# File 'lib/deplate/common.rb', line 345

def current_heading
  @current_heading
end

Instance Method Details

#destinationObject



352
353
354
# File 'lib/deplate/common.rb', line 352

def destination
    @container.destination
end

#format_as_stringObject



364
365
366
367
368
# File 'lib/deplate/common.rb', line 364

def format_as_string
    # <+TBD+>: Doesn't work because the particles don't give info 
    # about their formatting method
    # @deplate.formatter.format_particle_as_string(self)
end

#format_particle(agent, *args) ⇒ Object



360
361
362
# File 'lib/deplate/common.rb', line 360

def format_particle(agent, *args)
    return @deplate.formatter.format_particle(agent, *args)
end

#plain_text(*args) ⇒ Object



356
357
358
# File 'lib/deplate/common.rb', line 356

def plain_text(*args)
    @deplate.formatter.plain_text(*args)
end

#top_headingObject



348
349
350
# File 'lib/deplate/common.rb', line 348

def top_heading
    @container.top_heading
end