Class: FFWD::Schema::Loaded

Inherits:
Object
  • Object
show all
Defined in:
lib/ffwd/schema.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source, mod) ⇒ Loaded

Returns a new instance of Loaded.



54
55
56
57
# File 'lib/ffwd/schema.rb', line 54

def initialize source, mod
  @source = source
  @mod = mod
end

Instance Attribute Details

#modObject (readonly)

Returns the value of attribute mod.



52
53
54
# File 'lib/ffwd/schema.rb', line 52

def mod
  @mod
end

#sourceObject (readonly)

Returns the value of attribute source.



52
53
54
# File 'lib/ffwd/schema.rb', line 52

def source
  @source
end

Instance Method Details

#support?(support) ⇒ Boolean

Returns:

  • (Boolean)


59
60
61
62
63
64
65
# File 'lib/ffwd/schema.rb', line 59

def support? support
  support.each do |m|
    return false unless @mod.respond_to? m
  end

  return true
end