Class: Cheri::JRuby::Explorer::NodeType

Inherits:
Object
  • Object
show all
Defined in:
lib/cheri/jruby/explorer/viewer.rb

Direct Known Subclasses

NodeTypeValue

Instance Method Summary collapse

Constructor Details

#initialize(type, subtype = nil) ⇒ NodeType

Returns a new instance of NodeType.



124
125
126
127
# File 'lib/cheri/jruby/explorer/viewer.rb', line 124

def initialize(type,subtype=nil)
  @t = type
  @s = subtype if subtype
end

Instance Method Details

#subtypeObject



131
132
133
# File 'lib/cheri/jruby/explorer/viewer.rb', line 131

def subtype
  @s  
end

#typeObject



128
129
130
# File 'lib/cheri/jruby/explorer/viewer.rb', line 128

def type
  @t  
end