Class: Cda::MetaInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/cda/meta_info.rb

Defined Under Namespace

Classes: Field

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#attributesObject (readonly)

Returns the value of attribute attributes.



4
5
6
# File 'lib/cda/meta_info.rb', line 4

def attributes
  @attributes
end

#elementsObject (readonly)

Returns the value of attribute elements.



4
5
6
# File 'lib/cda/meta_info.rb', line 4

def elements
  @elements
end

#textObject (readonly)

Returns the value of attribute text.



4
5
6
# File 'lib/cda/meta_info.rb', line 4

def text
  @text
end

Class Method Details

.for(klass) ⇒ Object



6
7
8
# File 'lib/cda/meta_info.rb', line 6

def self.for(klass)
  new(klass)
end

Instance Method Details

#has_text?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/cda/meta_info.rb', line 10

def has_text?
  !text.nil?
end