Class: Elf::Policy::Call
- Inherits:
-
Transition
- Object
- Transition
- Elf::Policy::Call
- Defined in:
- lib/mithril/policy/dsl.rb
Instance Attribute Summary collapse
-
#parambytes ⇒ Object
Returns the value of attribute parambytes.
-
#returnbytes ⇒ Object
Returns the value of attribute returnbytes.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
Attributes inherited from Transition
Instance Method Summary collapse
- #allows_return? ⇒ Boolean
-
#initialize(from, to, symbol, parambytes, returnbytes) ⇒ Call
constructor
A new instance of Call.
Constructor Details
#initialize(from, to, symbol, parambytes, returnbytes) ⇒ Call
Returns a new instance of Call.
15 16 17 |
# File 'lib/mithril/policy/dsl.rb', line 15 def initialize(from,to, symbol, parambytes, returnbytes) @from, @to, @symbol, @parambytes, @returnbytes = from,to, symbol, parambytes, returnbytes end |
Instance Attribute Details
#parambytes ⇒ Object
Returns the value of attribute parambytes.
14 15 16 |
# File 'lib/mithril/policy/dsl.rb', line 14 def parambytes @parambytes end |
#returnbytes ⇒ Object
Returns the value of attribute returnbytes.
14 15 16 |
# File 'lib/mithril/policy/dsl.rb', line 14 def returnbytes @returnbytes end |
#symbol ⇒ Object
Returns the value of attribute symbol.
13 14 15 |
# File 'lib/mithril/policy/dsl.rb', line 13 def symbol @symbol end |
Instance Method Details
#allows_return? ⇒ Boolean
18 19 20 |
# File 'lib/mithril/policy/dsl.rb', line 18 def allows_return? @returnbytes >= 0 end |