Module: Flutterby::Node::Reading

Included in:
Flutterby::Node
Defined in:
lib/flutterby/node.rb

Instance Method Summary collapse

Instance Method Details

#dataObject



180
181
182
# File 'lib/flutterby/node.rb', line 180

def data
  @data_proxy ||= Dotaccess[@data]
end

#reload!Object

(Re-)loads the node from the filesystem, if it’s a filesystem based node.



168
169
170
171
172
173
174
175
176
177
178
# File 'lib/flutterby/node.rb', line 168

def reload!
  @data     = nil
  @data_proxy = nil
  @prefix   = nil
  @slug     = nil
  @children = []

  load_from_filesystem! if @fs_path

  extract_data!
end