Class: Intent::Core::Action

Inherits:
Object
  • Object
show all
Defined in:
lib/intent/core.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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.tags)
end

Instance Attribute Details

#nounObject (readonly)

Returns the value of attribute noun.



16
17
18
# File 'lib/intent/core.rb', line 16

def noun
  @noun
end

#verbObject (readonly)

Returns the value of attribute verb.



15
16
17
# File 'lib/intent/core.rb', line 15

def verb
  @verb
end