Class: Ekylibre::Support::Item

Inherits:
Struct
  • Object
show all
Defined in:
lib/ekylibre/support/lister.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args


3
4
5
# File 'lib/ekylibre/support/lister.rb', line 3

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block


3
4
5
# File 'lib/ekylibre/support/lister.rb', line 3

def block
  @block
end

#typeObject Also known as: name

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type


3
4
5
# File 'lib/ekylibre/support/lister.rb', line 3

def type
  @type
end

Instance Method Details

#optionsObject


6
7
8
# File 'lib/ekylibre/support/lister.rb', line 6

def options
  args[-1].is_a?(Hash) ? args[-1] : {}
end