Class: Rubysh::BaseDirective

Inherits:
Object
  • Object
show all
Defined in:
lib/rubysh/base_directive.rb

Direct Known Subclasses

Redirect, TripleLessThan, TripleLessThan::Shell

Instance Method Summary collapse

Instance Method Details

#apply!(runner) ⇒ Object

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/rubysh/base_directive.rb', line 15

def apply!(runner)
  raise NotImplementedError.new("Override in subclass")
end

#apply_parent!(runner) ⇒ Object

Raises:

  • (NotImplementedError)


11
12
13
# File 'lib/rubysh/base_directive.rb', line 11

def apply_parent!(runner)
  raise NotImplementedError.new("Override in subclass")
end

#prepare!(runner) ⇒ Object

Raises:

  • (NotImplementedError)


7
8
9
# File 'lib/rubysh/base_directive.rb', line 7

def prepare!(runner)
  raise NotImplementedError.new("Override in subclass")
end

#state(runner) ⇒ Object

TODO: DRY up?



20
21
22
# File 'lib/rubysh/base_directive.rb', line 20

def state(runner)
  runner.state(self)
end

#stringifyObject

Raises:

  • (NotImplementedError)


3
4
5
# File 'lib/rubysh/base_directive.rb', line 3

def stringify
  raise NotImplementedError.new("Override in subclass")
end