Class: Lutaml::Rdf::MemberRule
- Inherits:
-
Object
- Object
- Lutaml::Rdf::MemberRule
- Defined in:
- lib/lutaml/rdf/member_rule.rb
Instance Attribute Summary collapse
-
#attr_name ⇒ Object
readonly
Returns the value of attribute attr_name.
Instance Method Summary collapse
-
#initialize(attr_name) ⇒ MemberRule
constructor
A new instance of MemberRule.
Constructor Details
#initialize(attr_name) ⇒ MemberRule
Returns a new instance of MemberRule.
8 9 10 |
# File 'lib/lutaml/rdf/member_rule.rb', line 8 def initialize(attr_name) @attr_name = attr_name.to_sym end |
Instance Attribute Details
#attr_name ⇒ Object (readonly)
Returns the value of attribute attr_name.
6 7 8 |
# File 'lib/lutaml/rdf/member_rule.rb', line 6 def attr_name @attr_name end |