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.
346 347 348 |
# File 'lib/deplate/common.rb', line 346 def context @context end |
#current_heading ⇒ Object
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
#destination ⇒ Object
352 353 354 |
# File 'lib/deplate/common.rb', line 352 def destination @container.destination end |
#format_as_string ⇒ Object
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_heading ⇒ Object
348 349 350 |
# File 'lib/deplate/common.rb', line 348 def top_heading @container.top_heading end |