Class: ConvenientService::Feature::Configs::Standard::Commands::IsFeature

Inherits:
Support::Command
  • Object
show all
Defined in:
lib/convenient_service/feature/configs/standard/commands/is_feature.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Support::Command

[], call

Constructor Details

#initialize(feature:) ⇒ void

Parameters:

  • feature (Object)

    Can be any type.



24
25
26
# File 'lib/convenient_service/feature/configs/standard/commands/is_feature.rb', line 24

def initialize(feature:)
  @feature = feature
end

Instance Attribute Details

#featureObject (readonly)

Returns the value of attribute feature.



18
19
20
# File 'lib/convenient_service/feature/configs/standard/commands/is_feature.rb', line 18

def feature
  @feature
end

Instance Method Details

#callBoolean

Returns:

  • (Boolean)


31
32
33
# File 'lib/convenient_service/feature/configs/standard/commands/is_feature.rb', line 31

def call
  Commands::IsFeatureClass[feature_class: feature.class]
end