Class: Strut::ImportCommand
- Inherits:
-
SlimCommand
- Object
- SlimCommand
- Strut::ImportCommand
- Defined in:
- lib/strut/slim_command.rb
Instance Attribute Summary collapse
-
#namespace ⇒ Object
readonly
Returns the value of attribute namespace.
Attributes inherited from SlimCommand
Instance Method Summary collapse
- #command ⇒ Object
-
#initialize(id, metadata, namespace) ⇒ ImportCommand
constructor
A new instance of ImportCommand.
- #to_a ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(id, metadata, namespace) ⇒ ImportCommand
Returns a new instance of ImportCommand.
25 26 27 28 |
# File 'lib/strut/slim_command.rb', line 25 def initialize(id, , namespace) super(id, ) @namespace = namespace end |
Instance Attribute Details
#namespace ⇒ Object (readonly)
Returns the value of attribute namespace.
23 24 25 |
# File 'lib/strut/slim_command.rb', line 23 def namespace @namespace end |
Instance Method Details
#command ⇒ Object
30 31 32 |
# File 'lib/strut/slim_command.rb', line 30 def command "import" end |
#to_a ⇒ Object
34 35 36 |
# File 'lib/strut/slim_command.rb', line 34 def to_a super + [@namespace] end |
#to_s ⇒ Object
38 39 40 |
# File 'lib/strut/slim_command.rb', line 38 def to_s "#{super} import #{@namespace}" end |