Class: Intent::Core::Action
- Inherits:
-
Object
- Object
- Intent::Core::Action
- Defined in:
- lib/intent/core.rb
Instance Attribute Summary collapse
-
#noun ⇒ Object
readonly
Returns the value of attribute noun.
-
#verb ⇒ Object
readonly
Returns the value of attribute verb.
Instance Method Summary collapse
-
#initialize(verb_sym, noun_r) ⇒ Action
constructor
A new instance of Action.
Constructor Details
#initialize(verb_sym, noun_r) ⇒ Action
Returns a new instance of Action.
18 19 20 21 |
# File 'lib/intent/core.rb', line 18 def initialize(verb_sym, noun_r) @verb = Verbs.instance_for(verb_sym) @noun = Noun.new(noun_r.type, noun_r.label, noun_r.) end |
Instance Attribute Details
#noun ⇒ Object (readonly)
Returns the value of attribute noun.
16 17 18 |
# File 'lib/intent/core.rb', line 16 def noun @noun end |
#verb ⇒ Object (readonly)
Returns the value of attribute verb.
15 16 17 |
# File 'lib/intent/core.rb', line 15 def verb @verb end |