Module: Flutterby::Node::Reading

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

Instance Method Summary collapse

Instance Method Details

#dataObject



173
174
175
# File 'lib/flutterby/node.rb', line 173

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

#reload!Object

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



161
162
163
164
165
166
167
168
169
170
171
# File 'lib/flutterby/node.rb', line 161

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

  load_from_filesystem! if @fs_path

  extract_data!
end