class Deep::Hash::Struct::Dashboard
Attributes
tables[RW]
Public Class Methods
new()
click to toggle source
# File lib/deep/hash/struct/dashboard.rb, line 11 def initialize self.tables = [] end
Public Instance Methods
add_table(options = {}) { |table = table| ... }
click to toggle source
# File lib/deep/hash/struct/dashboard.rb, line 15 def add_table(options = {}) tables << if block_given? yield table = Table.new(options) table.parse! table else Table.new end end
each() { |table| ... }
click to toggle source
# File lib/deep/hash/struct/dashboard.rb, line 25 def each if block_given? tables.each do |table| yield table end else tables.each end end
map() { |table| ... }
click to toggle source
# File lib/deep/hash/struct/dashboard.rb, line 35 def map if block_given? tables.map do |table| yield table end else tables.map end end
Also aliased as: collect