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.
244 245 246 |
# File 'lib/sup/message_chunks.rb', line 244 def initialize lines @lines = lines end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
243 244 245 |
# File 'lib/sup/message_chunks.rb', line 243 def lines @lines end |
Instance Method Details
#color ⇒ Object
256 |
# File 'lib/sup/message_chunks.rb', line 256 def color; :sig_color end |
#expandable? ⇒ Boolean
250 |
# File 'lib/sup/message_chunks.rb', line 250 def ; !inlineable? end |
#indexable? ⇒ Boolean
251 |
# File 'lib/sup/message_chunks.rb', line 251 def indexable?; end |
#inlineable? ⇒ Boolean
248 |
# File 'lib/sup/message_chunks.rb', line 248 def inlineable?; @lines.length == 1 end |
#patina_color ⇒ Object
254 |
# File 'lib/sup/message_chunks.rb', line 254 def patina_color; :sig_patina_color end |
#patina_text ⇒ Object
255 |
# File 'lib/sup/message_chunks.rb', line 255 def patina_text; "(#{lines.length}-line signature)" end |
#quotable? ⇒ Boolean
249 |
# File 'lib/sup/message_chunks.rb', line 249 def quotable?; false end |
#viewable? ⇒ Boolean
252 |
# File 'lib/sup/message_chunks.rb', line 252 def viewable?; false end |