Class: VueCompiler::Node::Directive
- Inherits:
-
Object
- Object
- VueCompiler::Node::Directive
- Defined in:
- lib/vue_component_compiler/node.rb
Instance Attribute Summary collapse
-
#argument ⇒ Object
readonly
Returns the value of attribute argument.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#shorthand ⇒ Object
readonly
Returns the value of attribute shorthand.
Instance Method Summary collapse
-
#initialize(name, argument, shorthand = false) ⇒ Directive
constructor
A new instance of Directive.
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
#argument ⇒ Object (readonly)
Returns the value of attribute argument.
64 65 66 |
# File 'lib/vue_component_compiler/node.rb', line 64 def argument @argument end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
64 65 66 |
# File 'lib/vue_component_compiler/node.rb', line 64 def name @name end |
#shorthand ⇒ Object (readonly)
Returns the value of attribute shorthand.
64 65 66 |
# File 'lib/vue_component_compiler/node.rb', line 64 def shorthand @shorthand end |