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.



341
342
343
# File 'lib/deplate/common.rb', line 341

def context
  @context
end

#current_headingObject

Returns the value of attribute current_heading.



340
341
342
# File 'lib/deplate/common.rb', line 340

def current_heading
  @current_heading
end

Instance Method Details

#destinationObject



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

def destination
    @container.destination
end

#format_as_stringObject



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

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



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

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

#plain_text(*args) ⇒ Object



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

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

#top_headingObject



343
344
345
# File 'lib/deplate/common.rb', line 343

def top_heading
    @container.top_heading
end