Class: SuperFormatter::Row
- Inherits:
-
Struct
- Object
- Struct
- SuperFormatter::Row
- Defined in:
- lib/super_formatter/row.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#indexes ⇒ Object
Returns the value of attribute indexes.
Instance Method Summary collapse
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m) ⇒ Object
3 4 5 |
# File 'lib/super_formatter/row.rb', line 3 def method_missing(m) find(m) end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
2 3 4 |
# File 'lib/super_formatter/row.rb', line 2 def data @data end |
#indexes ⇒ Object
Returns the value of attribute indexes
2 3 4 |
# File 'lib/super_formatter/row.rb', line 2 def indexes @indexes end |
Instance Method Details
#complete? ⇒ Boolean
7 8 9 10 11 12 |
# File 'lib/super_formatter/row.rb', line 7 def complete? indexes.keys.each do |k, i| return false if send(k).nil? end true end |