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.
258 259 260 |
# File 'lib/sup/message_chunks.rb', line 258 def initialize lines @lines = lines end |
Instance Attribute Details
#lines ⇒ Object (readonly)
Returns the value of attribute lines.
257 258 259 |
# File 'lib/sup/message_chunks.rb', line 257 def lines @lines end |
Instance Method Details
#color ⇒ Object
270 |
# File 'lib/sup/message_chunks.rb', line 270 def color; :sig_color end |
#expandable? ⇒ Boolean
264 |
# File 'lib/sup/message_chunks.rb', line 264 def ; !inlineable? end |
#indexable? ⇒ Boolean
265 |
# File 'lib/sup/message_chunks.rb', line 265 def indexable?; end |
#inlineable? ⇒ Boolean
262 |
# File 'lib/sup/message_chunks.rb', line 262 def inlineable?; @lines.length == 1 end |
#patina_color ⇒ Object
268 |
# File 'lib/sup/message_chunks.rb', line 268 def patina_color; :sig_patina_color end |
#patina_text ⇒ Object
269 |
# File 'lib/sup/message_chunks.rb', line 269 def patina_text; "(#{lines.length}-line signature)" end |
#quotable? ⇒ Boolean
263 |
# File 'lib/sup/message_chunks.rb', line 263 def quotable?; false end |
#viewable? ⇒ Boolean
266 |
# File 'lib/sup/message_chunks.rb', line 266 def viewable?; false end |