Class: Elf::Policy::Data
- Inherits:
-
Transition
- Object
- Transition
- Elf::Policy::Data
- Defined in:
- lib/mithril/policy/dsl.rb
Instance Attribute Summary collapse
-
#exec ⇒ Object
Returns the value of attribute exec.
-
#read ⇒ Object
Returns the value of attribute read.
-
#tag ⇒ Object
Returns the value of attribute tag.
-
#write ⇒ Object
Returns the value of attribute write.
Attributes inherited from Transition
Instance Method Summary collapse
-
#initialize(from, to, tag, read = false, write = false, exec = false) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(from, to, tag, read = false, write = false, exec = false) ⇒ Data
Returns a new instance of Data.
25 26 27 |
# File 'lib/mithril/policy/dsl.rb', line 25 def initialize(from,to,tag , read=false ,write=false,exec=false) @from, @to, @tag, @read,@write,@exec = from,to,tag,read,write,exec end |
Instance Attribute Details
#exec ⇒ Object
Returns the value of attribute exec.
24 25 26 |
# File 'lib/mithril/policy/dsl.rb', line 24 def exec @exec end |
#read ⇒ Object
Returns the value of attribute read.
24 25 26 |
# File 'lib/mithril/policy/dsl.rb', line 24 def read @read end |
#tag ⇒ Object
Returns the value of attribute tag.
23 24 25 |
# File 'lib/mithril/policy/dsl.rb', line 23 def tag @tag end |
#write ⇒ Object
Returns the value of attribute write.
24 25 26 |
# File 'lib/mithril/policy/dsl.rb', line 24 def write @write end |