Class: Diecut::PluginDescription::ContextDefault
- Inherits:
-
Struct
- Object
- Struct
- Diecut::PluginDescription::ContextDefault
- Defined in:
- lib/diecut/plugin-description/context-default.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#context_path ⇒ Object
Returns the value of attribute context_path.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
3 4 5 |
# File 'lib/diecut/plugin-description/context-default.rb', line 3 def block @block end |
#context_path ⇒ Object
Returns the value of attribute context_path
3 4 5 |
# File 'lib/diecut/plugin-description/context-default.rb', line 3 def context_path @context_path end |
#value ⇒ Object
Returns the value of attribute value
3 4 5 |
# File 'lib/diecut/plugin-description/context-default.rb', line 3 def value @value end |
Instance Method Details
#compute_value(context) ⇒ Object
8 9 10 |
# File 'lib/diecut/plugin-description/context-default.rb', line 8 def compute_value(context) block.call(context) end |
#simple? ⇒ Boolean
4 5 6 |
# File 'lib/diecut/plugin-description/context-default.rb', line 4 def simple? value != NO_VALUE end |