Class: OpenWFE::FilterDefinition::Field
- Inherits:
-
Object
- Object
- OpenWFE::FilterDefinition::Field
- Defined in:
- lib/openwfe/filterdef.rb
Instance Attribute Summary collapse
-
#permissions ⇒ Object
Returns the value of attribute permissions.
-
#regex ⇒ Object
Returns the value of attribute regex.
Instance Method Summary collapse
Instance Attribute Details
#permissions ⇒ Object
Returns the value of attribute permissions.
244 245 246 |
# File 'lib/openwfe/filterdef.rb', line 244 def @permissions end |
#regex ⇒ Object
Returns the value of attribute regex.
244 245 246 |
# File 'lib/openwfe/filterdef.rb', line 244 def regex @regex end |
Instance Method Details
#may_read? ⇒ Boolean
246 247 248 |
# File 'lib/openwfe/filterdef.rb', line 246 def may_read? @permissions.to_s.index("r") != nil end |
#may_write? ⇒ Boolean
250 251 252 |
# File 'lib/openwfe/filterdef.rb', line 250 def may_write? @permissions.to_s.index("w") != nil end |
#no_rights? ⇒ Boolean
254 255 256 |
# File 'lib/openwfe/filterdef.rb', line 254 def no_rights? @permissions.to_s == "" end |