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.



103
104
105
106
# File 'lib/fast_haml/ast.rb', line 103

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

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



102
103
104
# File 'lib/fast_haml/ast.rb', line 102

def name
  @name
end

#textsObject

Returns the value of attribute texts

Returns:

  • (Object)

    the current value of texts



102
103
104
# File 'lib/fast_haml/ast.rb', line 102

def texts
  @texts
end