Class: Trestle::Navigation::Block
- Inherits:
-
Object
- Object
- Trestle::Navigation::Block
- Defined in:
- lib/trestle/navigation/block.rb
Defined Under Namespace
Classes: Evaluator
Instance Attribute Summary collapse
-
#admin ⇒ Object
readonly
Returns the value of attribute admin.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Instance Method Summary collapse
-
#initialize(admin = nil, &block) ⇒ Block
constructor
A new instance of Block.
- #items(context) ⇒ Object
Constructor Details
#initialize(admin = nil, &block) ⇒ Block
Returns a new instance of Block.
6 7 8 9 |
# File 'lib/trestle/navigation/block.rb', line 6 def initialize(admin=nil, &block) @admin = admin @block = block end |
Instance Attribute Details
#admin ⇒ Object (readonly)
Returns the value of attribute admin.
4 5 6 |
# File 'lib/trestle/navigation/block.rb', line 4 def admin @admin end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/trestle/navigation/block.rb', line 4 def block @block end |