Class: Useless::Doc::UI::Godel::Resource
- Inherits:
-
Object
- Object
- Useless::Doc::UI::Godel::Resource
- Extended by:
- Forwardable
- Defined in:
- lib/useless/doc/ui/godel.rb
Instance Method Summary collapse
- #actions ⇒ Object
-
#initialize(resource) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(resource) ⇒ Resource
Returns a new instance of Resource.
21 22 23 |
# File 'lib/useless/doc/ui/godel.rb', line 21 def initialize(resource) @resource = resource end |
Instance Method Details
#actions ⇒ Object
25 26 27 |
# File 'lib/useless/doc/ui/godel.rb', line 25 def actions @resource.actions.map{ |action| Godel::Action.new(action) } end |