Class: R18n::Filters::Filter
- Inherits:
-
Struct
- Object
- Struct
- R18n::Filters::Filter
- Defined in:
- lib/r18n-core/filters.rb
Instance Attribute Summary collapse
-
#block ⇒ Object
Returns the value of attribute block.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#name ⇒ Object
Returns the value of attribute name.
-
#passive ⇒ Object
Returns the value of attribute passive.
-
#types ⇒ Object
Returns the value of attribute types.
Instance Method Summary collapse
Instance Attribute Details
#block ⇒ Object
Returns the value of attribute block
211 212 213 |
# File 'lib/r18n-core/filters.rb', line 211 def block @block end |
#enabled ⇒ Object
Returns the value of attribute enabled
211 212 213 |
# File 'lib/r18n-core/filters.rb', line 211 def enabled @enabled end |
#name ⇒ Object
Returns the value of attribute name
211 212 213 |
# File 'lib/r18n-core/filters.rb', line 211 def name @name end |
#passive ⇒ Object
Returns the value of attribute passive
211 212 213 |
# File 'lib/r18n-core/filters.rb', line 211 def passive @passive end |
#types ⇒ Object
Returns the value of attribute types
211 212 213 |
# File 'lib/r18n-core/filters.rb', line 211 def types @types end |
Instance Method Details
#call(*params) ⇒ Object
212 213 214 |
# File 'lib/r18n-core/filters.rb', line 212 def call(*params) instance_exec(*params, &block) end |
#enabled? ⇒ Boolean
216 217 218 |
# File 'lib/r18n-core/filters.rb', line 216 def enabled? enabled end |
#passive? ⇒ Boolean
220 221 222 |
# File 'lib/r18n-core/filters.rb', line 220 def passive? passive end |