Module: Deplate::CommonParticle
- Included in:
- BaseParticle
- Defined in:
- lib/deplate/common.rb
Instance Attribute Summary collapse
-
#context ⇒ Object
readonly
Returns the value of attribute context.
-
#current_heading ⇒ Object
Returns the value of attribute current_heading.
Instance Method Summary collapse
- #destination ⇒ Object
- #format_as_string ⇒ Object
- #format_particle(agent, *args) ⇒ Object
- #plain_text(*args) ⇒ Object
- #top_heading ⇒ Object
Instance Attribute Details
#context ⇒ Object (readonly)
Returns the value of attribute context.
341 342 343 |
# File 'lib/deplate/common.rb', line 341 def context @context end |
#current_heading ⇒ Object
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
#destination ⇒ Object
347 348 349 |
# File 'lib/deplate/common.rb', line 347 def destination @container.destination end |
#format_as_string ⇒ Object
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_heading ⇒ Object
343 344 345 |
# File 'lib/deplate/common.rb', line 343 def top_heading @container.top_heading end |