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