Class: Howdoc::Step::Narrated

Inherits:
Struct
  • Object
show all
Defined in:
lib/howdoc/step.rb

Overview

A step as one language tells it: the sentence composed, the illustration named as that language's guide refers to it. This is what a template is handed, so a template never has to know which language it is rendering.

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#arrivalObject

Returns the value of attribute arrival

Returns:

  • (Object)

    the current value of arrival



15
16
17
# File 'lib/howdoc/step.rb', line 15

def arrival
  @arrival
end

#htmlObject

Returns the value of attribute html

Returns:

  • (Object)

    the current value of html



15
16
17
# File 'lib/howdoc/step.rb', line 15

def html
  @html
end

#numberObject

Returns the value of attribute number

Returns:

  • (Object)

    the current value of number



15
16
17
# File 'lib/howdoc/step.rb', line 15

def number
  @number
end

#screenshotObject

Returns the value of attribute screenshot

Returns:

  • (Object)

    the current value of screenshot



15
16
17
# File 'lib/howdoc/step.rb', line 15

def screenshot
  @screenshot
end

Instance Method Details

#empty?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/howdoc/step.rb', line 16

def empty?
  html.nil? && screenshot.nil?
end