Class: Options::Option

Inherits:
Object
  • Object
show all
Defined in:
lib/bujo/options/option.rb

Defined Under Namespace

Classes: Builder

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#actionObject (readonly)

Returns the value of attribute action.



3
4
5
# File 'lib/bujo/options/option.rb', line 3

def action
  @action
end

#descriptionObject (readonly)

Returns the value of attribute description.



3
4
5
# File 'lib/bujo/options/option.rb', line 3

def description
  @description
end

#long_nameObject (readonly)

Returns the value of attribute long_name.



3
4
5
# File 'lib/bujo/options/option.rb', line 3

def long_name
  @long_name
end

#short_nameObject (readonly)

Returns the value of attribute short_name.



3
4
5
# File 'lib/bujo/options/option.rb', line 3

def short_name
  @short_name
end

#value_typeObject (readonly)

Returns the value of attribute value_type.



3
4
5
# File 'lib/bujo/options/option.rb', line 3

def value_type
  @value_type
end

Class Method Details

.builderObject



13
14
15
# File 'lib/bujo/options/option.rb', line 13

def self.builder
  Builder.new
end

Instance Method Details

#valuedObject



17
18
19
# File 'lib/bujo/options/option.rb', line 17

def valued
  not @value_type.nil?
end