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
209 210 211 |
# File 'lib/r18n-core/filters.rb', line 209 def block @block end |
#enabled ⇒ Object
Returns the value of attribute enabled
209 210 211 |
# File 'lib/r18n-core/filters.rb', line 209 def enabled @enabled end |
#name ⇒ Object
Returns the value of attribute name
209 210 211 |
# File 'lib/r18n-core/filters.rb', line 209 def name @name end |
#passive ⇒ Object
Returns the value of attribute passive
209 210 211 |
# File 'lib/r18n-core/filters.rb', line 209 def passive @passive end |
#types ⇒ Object
Returns the value of attribute types
209 210 211 |
# File 'lib/r18n-core/filters.rb', line 209 def types @types end |
Instance Method Details
#call(*params) ⇒ Object
210 211 212 |
# File 'lib/r18n-core/filters.rb', line 210 def call(*params) instance_exec(*params, &block) end |
#enabled? ⇒ Boolean
214 215 216 |
# File 'lib/r18n-core/filters.rb', line 214 def enabled? enabled end |
#passive? ⇒ Boolean
218 219 220 |
# File 'lib/r18n-core/filters.rb', line 218 def passive? passive end |