Class: Puree::Model::Structure

Inherits:
Object
  • Object
show all
Defined in:
lib/puree/model/structure.rb

Overview

A structure.

Instance Method Summary collapse

Instance Method Details

#data?Boolean

Returns:

  • (Boolean)


8
9
10
11
12
13
14
# File 'lib/puree/model/structure.rb', line 8

def data?
  found = false
  instance_variables.each do |i|
    found = true if i
  end
  found
end