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



213
214
215
# File 'lib/r18n-core/filters.rb', line 213

def block
  @block
end

#enabledObject

Returns the value of attribute enabled

Returns:

  • (Object)

    the current value of enabled



213
214
215
# File 'lib/r18n-core/filters.rb', line 213

def enabled
  @enabled
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



213
214
215
# File 'lib/r18n-core/filters.rb', line 213

def name
  @name
end

#passiveObject

Returns the value of attribute passive

Returns:

  • (Object)

    the current value of passive



213
214
215
# File 'lib/r18n-core/filters.rb', line 213

def passive
  @passive
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



213
214
215
# File 'lib/r18n-core/filters.rb', line 213

def type
  @type
end

Instance Method Details

#call(*params) ⇒ Object



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

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

#enabled?Boolean

Returns:

  • (Boolean)


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

def enabled?; enabled; end

#passive?Boolean

Returns:

  • (Boolean)


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

def passive?; passive; end