Module: Diary::Item::Data
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
4 5 6 |
# File 'lib/diary/item/data.rb', line 4 def data @data end |
Instance Method Details
#initialize(*args) ⇒ Object
6 7 8 9 |
# File 'lib/diary/item/data.rb', line 6 def initialize(*args) super load_data end |
#reload_data ⇒ Object
11 12 13 |
# File 'lib/diary/item/data.rb', line 11 def reload_data @data = load_data end |