Class: Alephant::Views::Base
- Inherits:
-
Mustache
- Object
- Mustache
- Alephant::Views::Base
- Defined in:
- lib/alephant/views/base.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(data) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(data) ⇒ Base
Returns a new instance of Base.
7 8 9 |
# File 'lib/alephant/views/base.rb', line 7 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
5 6 7 |
# File 'lib/alephant/views/base.rb', line 5 def data @data end |
Class Method Details
.inherited(subclass) ⇒ Object
11 12 13 |
# File 'lib/alephant/views/base.rb', line 11 def self.inherited(subclass) ::Alephant::Views.register(subclass) end |