Class: Elf::Policy::Data

Inherits:
Transition show all
Defined in:
lib/mithril/policy/dsl.rb

Instance Attribute Summary collapse

Attributes inherited from Transition

#from, #to

Instance Method Summary collapse

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

#execObject

Returns the value of attribute exec.



24
25
26
# File 'lib/mithril/policy/dsl.rb', line 24

def exec
  @exec
end

#readObject

Returns the value of attribute read.



24
25
26
# File 'lib/mithril/policy/dsl.rb', line 24

def read
  @read
end

#tagObject

Returns the value of attribute tag.



23
24
25
# File 'lib/mithril/policy/dsl.rb', line 23

def tag
  @tag
end

#writeObject

Returns the value of attribute write.



24
25
26
# File 'lib/mithril/policy/dsl.rb', line 24

def write
  @write
end