Class: Modern::Capsule
- Inherits:
-
Object
- Object
- Modern::Capsule
- Defined in:
- lib/modern/capsule.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(&block) ⇒ Capsule
constructor
A new instance of Capsule.
Constructor Details
#initialize(&block) ⇒ Capsule
Returns a new instance of Capsule.
9 10 11 |
# File 'lib/modern/capsule.rb', line 9 def initialize(&block) @block = block end |
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
7 8 9 |
# File 'lib/modern/capsule.rb', line 7 def block @block end |