Class: Calyx::Syntax::Modifier

Inherits:
Struct
  • Object
show all
Defined in:
lib/calyx/syntax/expression.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#map_dirObject

Returns the value of attribute map_dir

Returns:

  • (Object)

    the current value of map_dir



16
17
18
# File 'lib/calyx/syntax/expression.rb', line 16

def map_dir
  @map_dir
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



16
17
18
# File 'lib/calyx/syntax/expression.rb', line 16

def name
  @name
end

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



16
17
18
# File 'lib/calyx/syntax/expression.rb', line 16

def type
  @type
end

Class Method Details

.filter(name) ⇒ Object



17
18
19
# File 'lib/calyx/syntax/expression.rb', line 17

def self.filter(name)
  new(:filter, name, nil)
end

.map_left(name) ⇒ Object



21
22
23
# File 'lib/calyx/syntax/expression.rb', line 21

def self.map_left(name)
  new(:map, name, :left)
end

.map_right(name) ⇒ Object



25
26
27
# File 'lib/calyx/syntax/expression.rb', line 25

def self.map_right(name)
  new(:map, name, :right)
end