Class: Redwood::Chunk::Signature
Instance Attribute Summary collapse
-
#lines ⇒ Object
readonly
Returns the value of attribute lines.
Instance Method Summary collapse
- #color ⇒ Object
- #expandable? ⇒ Boolean
- #indexable? ⇒ Boolean
-
#initialize(lines) ⇒ Signature
constructor
A new instance of Signature.
- #inlineable? ⇒ Boolean
- #patina_color ⇒ Object
- #patina_text ⇒ Object
- #quotable? ⇒ Boolean
- #viewable? ⇒ Boolean
Constructor Details
#initialize(lines) ⇒ Signature
Returns a new instance of Signature.
268 269 270 |
# File 'lib/sup/message_chunks.rb', line 268 def initialize lines @lines = lines end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
267 268 269 |
# File 'lib/sup/message_chunks.rb', line 267 def lines @lines end |
Instance Method Details
#color ⇒ Object
280 |
# File 'lib/sup/message_chunks.rb', line 280 def color; :sig_color end |
#expandable? ⇒ Boolean
274 |
# File 'lib/sup/message_chunks.rb', line 274 def ; !inlineable? end |
#indexable? ⇒ Boolean
275 |
# File 'lib/sup/message_chunks.rb', line 275 def indexable?; end |
#inlineable? ⇒ Boolean
272 |
# File 'lib/sup/message_chunks.rb', line 272 def inlineable?; @lines.length == 1 end |
#patina_color ⇒ Object
278 |
# File 'lib/sup/message_chunks.rb', line 278 def patina_color; :sig_patina_color end |
#patina_text ⇒ Object
279 |
# File 'lib/sup/message_chunks.rb', line 279 def patina_text; "(#{lines.length}-line signature)" end |
#quotable? ⇒ Boolean
273 |
# File 'lib/sup/message_chunks.rb', line 273 def quotable?; false end |
#viewable? ⇒ Boolean
276 |
# File 'lib/sup/message_chunks.rb', line 276 def viewable?; false end |