class JCR::ArrayBehavior
Attributes
checked_hash[RW]
extra_prohibited[RW]
last_index[RW]
ordered[RW]
Public Class Methods
new( current_behavior = nil )
click to toggle source
# File lib/jcr/evaluate_array_rules.rb, line 32 def initialize( current_behavior = nil ) if current_behavior @checked_hash = {} @checked_hash.merge!( current_behavior.checked_hash ) @last_index = current_behavior.last_index @ordered = current_behavior.ordered @extra_prohibited = false else @checked_hash = {} @last_index = 0 @ordered = true @extra_prohibited = true end end