class Oval::ArrayItem

Attributes

item_decl[R]

Public Class Methods

[](item_decl) click to toggle source
# File lib/oval/array_item.rb, line 14
def self.[](item_decl)
  new(item_decl)
end
new(item_decl) click to toggle source
# File lib/oval/array_item.rb, line 18
def initialize(item_decl)
  self.item_decl = item_decl
end

Public Instance Methods

it_should() click to toggle source
# File lib/oval/array_item.rb, line 10
def it_should
  self.class.it_should(item_decl)
end
validate(item, i, subject = nil) click to toggle source
# File lib/oval/array_item.rb, line 5
def validate(item, i, subject = nil)
  item_subject = subject.nil? ? nil : "#{subject}[#{i}]"
  self.class.validate(item,item_decl,item_subject)
end

Private Instance Methods

item_decl=(decl) click to toggle source
# File lib/oval/array_item.rb, line 26
def item_decl=(decl)
  @item_decl = decl
end