Class: R18n::Filters::Filter

Inherits:
Struct
  • Object
show all
Defined in:
lib/r18n-core/filters.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



217
218
219
# File 'lib/r18n-core/filters.rb', line 217

def block
  @block
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



217
218
219
# File 'lib/r18n-core/filters.rb', line 217

def enabled
  @enabled
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



217
218
219
# File 'lib/r18n-core/filters.rb', line 217

def name
  @name
end

#passiveObject

Returns the value of attribute passive

Returns:

  • (Object)

    the current value of passive



217
218
219
# File 'lib/r18n-core/filters.rb', line 217

def passive
  @passive
end

#typesObject

Returns the value of attribute types

Returns:

  • (Object)

    the current value of types



217
218
219
# File 'lib/r18n-core/filters.rb', line 217

def types
  @types
end

Instance Method Details

#call(*params) ⇒ Object



218
# File 'lib/r18n-core/filters.rb', line 218

def call(*params); block.call(*params); end

#enabled?Boolean

Returns:

  • (Boolean)


219
# File 'lib/r18n-core/filters.rb', line 219

def enabled?; enabled; end

#passive?Boolean

Returns:

  • (Boolean)


220
# File 'lib/r18n-core/filters.rb', line 220

def passive?; passive; end