Class: VueCompiler::Node::Directive

Inherits:
Object
  • Object
show all
Defined in:
lib/vue_component_compiler/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, argument, shorthand = false) ⇒ Directive

Returns a new instance of Directive.



66
67
68
69
70
# File 'lib/vue_component_compiler/node.rb', line 66

def initialize(name, argument, shorthand = false)
  @name = name
  @argument = argument
  @shorthand = shorthand
end

Instance Attribute Details

#argumentObject (readonly)

Returns the value of attribute argument.



64
65
66
# File 'lib/vue_component_compiler/node.rb', line 64

def argument
  @argument
end

#nameObject (readonly)

Returns the value of attribute name.



64
65
66
# File 'lib/vue_component_compiler/node.rb', line 64

def name
  @name
end

#shorthandObject (readonly)

Returns the value of attribute shorthand.



64
65
66
# File 'lib/vue_component_compiler/node.rb', line 64

def shorthand
  @shorthand
end