Class: PS_Private::SOper
- Inherits:
-
Object
- Object
- PS_Private::SOper
- Defined in:
- lib/geotree/pswriter.rb
Constant Summary collapse
- @@null_oper =
SOper.new(-1)
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
- #arg(offset) ⇒ Object
-
#initialize(type, *args) ⇒ SOper
constructor
A new instance of SOper.
- #nargs ⇒ Object
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
#type ⇒ Object (readonly)
Returns the value of attribute type.
21 22 23 |
# File 'lib/geotree/pswriter.rb', line 21 def type @type end |
Class Method Details
.null ⇒ Object
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 |
#nargs ⇒ Object
35 36 37 |
# File 'lib/geotree/pswriter.rb', line 35 def nargs @args.size end |