Class: HexWrench::Weka::Explorer
- Defined in:
- lib/hexwrench/weka/explorer.rb
Defined Under Namespace
Classes: Header
Instance Attribute Summary collapse
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Attributes inherited from Explorer
Instance Method Summary collapse
- #create_header(persp) ⇒ Object
- #header(persp) ⇒ Object
-
#initialize(model) ⇒ Explorer
constructor
A new instance of Explorer.
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
#headers ⇒ Object (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 |