Class: Srgs::Lexicon

Inherits:
Object
  • Object
show all
Defined in:
lib/srgs/elements/lexicon.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/srgs/elements/lexicon.rb', line 4

def type
  @type
end

#uriObject

Returns the value of attribute uri.



4
5
6
# File 'lib/srgs/elements/lexicon.rb', line 4

def uri
  @uri
end