Class: Srgs::Lexicon
- Inherits:
-
Object
- Object
- Srgs::Lexicon
- Defined in:
- lib/srgs/elements/lexicon.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
Returns the value of attribute type.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize(uri, type = nil) ⇒ Lexicon
constructor
A new instance of Lexicon.
Constructor Details
#initialize(uri, type = nil) ⇒ Lexicon
Returns a new instance of Lexicon.
6 7 8 9 |
# File 'lib/srgs/elements/lexicon.rb', line 6 def initialize(uri, type=nil) @uri = uri @type = type end |
Instance Attribute Details
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/srgs/elements/lexicon.rb', line 4 def type @type end |
#uri ⇒ Object
Returns the value of attribute uri.
4 5 6 |
# File 'lib/srgs/elements/lexicon.rb', line 4 def uri @uri end |