Class: DataBag

Inherits:
Object
  • Object
show all
Defined in:
lib/hog/testing/pig_stubs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDataBag

Returns a new instance of DataBag.



9
10
11
# File 'lib/hog/testing/pig_stubs.rb', line 9

def initialize
  @data = []
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



8
9
10
# File 'lib/hog/testing/pig_stubs.rb', line 8

def data
  @data
end

Instance Method Details

#add(el) ⇒ Object



12
13
14
# File 'lib/hog/testing/pig_stubs.rb', line 12

def add(el)
  @data << el
end