Class: HexWrench::Weka::Explorer

Inherits:
Explorer
  • Object
show all
Defined in:
lib/hexwrench/weka/explorer.rb

Defined Under Namespace

Classes: Header

Instance Attribute Summary collapse

Attributes inherited from Explorer

#model

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ Explorer

Returns a new instance of Explorer.



157
158
159
160
# File 'lib/hexwrench/weka/explorer.rb', line 157

def initialize(model)
  super(model)
  @headers = {}
end

Instance Attribute Details

#headersObject (readonly)

Returns the value of attribute headers.



155
156
157
# File 'lib/hexwrench/weka/explorer.rb', line 155

def headers
  @headers
end

Instance Method Details

#create_header(persp) ⇒ Object



166
167
168
# File 'lib/hexwrench/weka/explorer.rb', line 166

def create_header(persp)
  Header.new(model, persp)
end

#header(persp) ⇒ Object



162
163
164
# File 'lib/hexwrench/weka/explorer.rb', line 162

def header(persp)
  @headers[persp] ||= create_header(persp)
end