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



204
205
206
# File 'lib/r18n-core/filters.rb', line 204

def block
  @block
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



204
205
206
# File 'lib/r18n-core/filters.rb', line 204

def enabled
  @enabled
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



204
205
206
# File 'lib/r18n-core/filters.rb', line 204

def name
  @name
end

#passiveObject

Returns the value of attribute passive

Returns:

  • (Object)

    the current value of passive



204
205
206
# File 'lib/r18n-core/filters.rb', line 204

def passive
  @passive
end

#typesObject

Returns the value of attribute types

Returns:

  • (Object)

    the current value of types



204
205
206
# File 'lib/r18n-core/filters.rb', line 204

def types
  @types
end

Instance Method Details

#call(*params) ⇒ Object



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

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

#enabled?Boolean

Returns:

  • (Boolean)


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

def enabled?; enabled; end

#passive?Boolean

Returns:

  • (Boolean)


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

def passive?; passive; end