Class: Cda::MetaInfo
- Inherits:
-
Object
- Object
- Cda::MetaInfo
- Defined in:
- lib/cda/meta_info.rb
Defined Under Namespace
Classes: Field
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#elements ⇒ Object
readonly
Returns the value of attribute elements.
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
4 5 6 |
# File 'lib/cda/meta_info.rb', line 4 def attributes @attributes end |
#elements ⇒ Object (readonly)
Returns the value of attribute elements.
4 5 6 |
# File 'lib/cda/meta_info.rb', line 4 def elements @elements end |
#text ⇒ Object (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
10 11 12 |
# File 'lib/cda/meta_info.rb', line 10 def has_text? !text.nil? end |