Class: PostPolicy::Rule::Format
- Inherits:
-
Object
- Object
- PostPolicy::Rule::Format
- Defined in:
- lib/postpolicy/rule.rb
Class Method Summary collapse
Class Method Details
.file(val) ⇒ Object
26 27 28 |
# File 'lib/postpolicy/rule.rb', line 26 def file( val ) DataSource::File.new( val ) end |
.format ⇒ Object
14 15 16 |
# File 'lib/postpolicy/rule.rb', line 14 def format self end |
.regex(val) ⇒ Object
22 23 24 |
# File 'lib/postpolicy/rule.rb', line 22 def regex( val ) DataSource::Regex.new( val ) end |
.sql(val) ⇒ Object
30 31 32 |
# File 'lib/postpolicy/rule.rb', line 30 def sql( val ) DataSource::Sql.new( val ) end |
.value(val) ⇒ Object
18 19 20 |
# File 'lib/postpolicy/rule.rb', line 18 def value( val ) DataSource::Value.new( val ) end |