Class: Warped::Table::Action
- Inherits:
-
Object
- Object
- Warped::Table::Action
- Defined in:
- lib/warped/table/action.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, path, **options) ⇒ Action
constructor
A new instance of Action.
- #name ⇒ Object
- #path ⇒ Object
Constructor Details
#initialize(name, path, **options) ⇒ Action
Returns a new instance of Action.
14 15 16 17 18 |
# File 'lib/warped/table/action.rb', line 14 def initialize(name, path, **) @name = name @path = path @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
8 9 10 |
# File 'lib/warped/table/action.rb', line 8 def @options end |
Instance Method Details
#name ⇒ Object
26 27 28 29 30 |
# File 'lib/warped/table/action.rb', line 26 def name(...) return @name.call(...) if @name.is_a?(Proc) @name end |
#path ⇒ Object
20 21 22 23 24 |
# File 'lib/warped/table/action.rb', line 20 def path(...) return @path.call(...) if @path.is_a?(Proc) @path end |