Class: Turnip::Builder::Step

Inherits:
Struct
  • Object
show all
Defined in:
lib/turnip/builder.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#descriptionObject

Returns the value of attribute description

Returns:

  • (Object)

    the current value of description



112
113
114
# File 'lib/turnip/builder.rb', line 112

def description
  @description
end

#extra_argsObject

Returns the value of attribute extra_args

Returns:

  • (Object)

    the current value of extra_args



112
113
114
# File 'lib/turnip/builder.rb', line 112

def extra_args
  @extra_args
end

#keywordObject

Returns the value of attribute keyword

Returns:

  • (Object)

    the current value of keyword



112
113
114
# File 'lib/turnip/builder.rb', line 112

def keyword
  @keyword
end

#lineObject

Returns the value of attribute line

Returns:

  • (Object)

    the current value of line



112
113
114
# File 'lib/turnip/builder.rb', line 112

def line
  @line
end

Instance Method Details

#split(*args) ⇒ Object

1.9.2 support hack



114
115
116
# File 'lib/turnip/builder.rb', line 114

def split(*args)
  self.to_s.split(*args)
end

#to_sObject



118
119
120
# File 'lib/turnip/builder.rb', line 118

def to_s
  "#{keyword}#{description}"
end