Class: Montague::Model::Structure

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

Overview

A structure.

Direct Known Subclasses

Archiving, CopyrightLink, Funder, Journal, Mandate, PaidAccess

Instance Method Summary collapse

Instance Method Details

#data?Boolean

Returns:

  • (Boolean)

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

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