Class: Whisper::Comment
Constant Summary
collapse
- RESEND_SETTING =
"send future comments to me"
- URL_SETTING =
"my url"
Instance Method Summary
collapse
Methods included from Dependency
#content, #dependency_init, #refresh!, #timestamp
Constructor Details
#initialize(meta_file, content_file) ⇒ Comment
Returns a new instance of Comment.
13
14
15
16
|
# File 'lib/whisper/comment.rb', line 13
def initialize meta_file, content_file
@text = Text.new meta_file, content_file
dependency_init
end
|
Instance Method Details
#body(format, opts = {}) ⇒ Object
29
|
# File 'lib/whisper/comment.rb', line 29
def body format, opts={}; @text.body format, opts end
|
#build(old, type) ⇒ Object
19
20
21
|
# File 'lib/whisper/comment.rb', line 19
def build old, type
end
|
#dependencies ⇒ Object
18
|
# File 'lib/whisper/comment.rb', line 18
def dependencies; [@text] end
|
#resend_setting ⇒ Object
these next two may not exist in imported and older comments, so we provide defaults here
26
|
# File 'lib/whisper/comment.rb', line 26
def resend_setting; @text.meta[:resend_setting] || "none" end
|
#url_setting ⇒ Object
27
|
# File 'lib/whisper/comment.rb', line 27
def url_setting; @text.meta[:url_setting] end
|