Class: JXL::Modular::MANode

Inherits:
Data
  • Object
show all
Defined in:
lib/jxl/modular/ma_tree.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#contextObject (readonly)

Returns the value of attribute context

Returns:

  • (Object)

    the current value of context



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def context
  @context
end

#leftObject (readonly)

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def left
  @left
end

#multiplierObject (readonly)

Returns the value of attribute multiplier

Returns:

  • (Object)

    the current value of multiplier



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def multiplier
  @multiplier
end

#offsetObject (readonly)

Returns the value of attribute offset

Returns:

  • (Object)

    the current value of offset



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def offset
  @offset
end

#predictorObject (readonly)

Returns the value of attribute predictor

Returns:

  • (Object)

    the current value of predictor



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def predictor
  @predictor
end

#propertyObject (readonly)

Returns the value of attribute property

Returns:

  • (Object)

    the current value of property



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def property
  @property
end

#rightObject (readonly)

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def right
  @right
end

#split_valueObject (readonly)

Returns the value of attribute split_value

Returns:

  • (Object)

    the current value of split_value



5
6
7
# File 'lib/jxl/modular/ma_tree.rb', line 5

def split_value
  @split_value
end

Instance Method Details

#leaf?Boolean

Returns:

  • (Boolean)


6
# File 'lib/jxl/modular/ma_tree.rb', line 6

def leaf? = property == -1