Class: FastHaml::Ast::Filter

Inherits:
Struct
  • Object
show all
Defined in:
lib/fast_haml/ast.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeFilter

Returns a new instance of Filter.



109
110
111
112
# File 'lib/fast_haml/ast.rb', line 109

def initialize(*)
  super
  self.texts ||= []
end

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



108
109
110
# File 'lib/fast_haml/ast.rb', line 108

def name
  @name
end

#textsObject

Returns the value of attribute texts

Returns:

  • (Object)

    the current value of texts



108
109
110
# File 'lib/fast_haml/ast.rb', line 108

def texts
  @texts
end