Class: DataBag
- Inherits:
-
Object
- Object
- DataBag
- Defined in:
- lib/hog/testing/pig_stubs.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #add(el) ⇒ Object
-
#initialize ⇒ DataBag
constructor
A new instance of DataBag.
Constructor Details
#initialize ⇒ DataBag
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
#data ⇒ Object (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 |