Parent

Class/Module Index [+]

Quicksearch

Redwood::Chunk::CryptoNotice

Attributes

lines[R]
patina_text[R]
status[R]

Public Class Methods

new(status, description, lines=[]) click to toggle source
# File lib/sup/message-chunks.rb, line 250
def initialize status, description, lines=[]
  @status = status
  @patina_text = description
  @lines = lines
end

Public Instance Methods

color() click to toggle source
# File lib/sup/message-chunks.rb, line 263
def color; patina_color end
expandable?() click to toggle source
# File lib/sup/message-chunks.rb, line 267
def expandable?; !@lines.empty? end
inlineable?() click to toggle source
# File lib/sup/message-chunks.rb, line 265
def inlineable?; false end
patina_color() click to toggle source
# File lib/sup/message-chunks.rb, line 256
def patina_color
  case status
  when :valid then :cryptosig_valid_color
  when :invalid then :cryptosig_invalid_color
  else :cryptosig_unknown_color
  end
end
quotable?() click to toggle source
# File lib/sup/message-chunks.rb, line 266
def quotable?; false end
viewable?() click to toggle source
# File lib/sup/message-chunks.rb, line 268
def viewable?; false end

[Validate]

Generated with the Darkfish Rdoc Generator 2.