Class: PS_Private::SOper

Inherits:
Object
  • Object
show all
Defined in:
lib/geotree/pswriter.rb

Constant Summary collapse

@@null_oper =
SOper.new(-1)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, *args) ⇒ SOper

Returns a new instance of SOper.



26
27
28
29
# File 'lib/geotree/pswriter.rb', line 26

def initialize(type, *args)
  @type = type
  @args = *args.dup
end

Instance Attribute Details

#typeObject (readonly)

Returns the value of attribute type.



21
22
23
# File 'lib/geotree/pswriter.rb', line 21

def type
  @type
end

Class Method Details

.nullObject



22
23
24
# File 'lib/geotree/pswriter.rb', line 22

def self.null
  @@null_oper
end

Instance Method Details

#arg(offset) ⇒ Object



31
32
33
# File 'lib/geotree/pswriter.rb', line 31

def arg(offset)
  @args[offset]
end

#nargsObject



35
36
37
# File 'lib/geotree/pswriter.rb', line 35

def nargs
  @args.size
end