Class: FFWD::Schema::Loaded
- Inherits:
-
Object
- Object
- FFWD::Schema::Loaded
- Defined in:
- lib/ffwd/schema.rb
Instance Attribute Summary collapse
-
#mod ⇒ Object
readonly
Returns the value of attribute mod.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(source, mod) ⇒ Loaded
constructor
A new instance of Loaded.
- #support?(support) ⇒ Boolean
Constructor Details
#initialize(source, mod) ⇒ Loaded
Returns a new instance of Loaded.
47 48 49 50 |
# File 'lib/ffwd/schema.rb', line 47 def initialize source, mod @source = source @mod = mod end |
Instance Attribute Details
#mod ⇒ Object (readonly)
Returns the value of attribute mod.
45 46 47 |
# File 'lib/ffwd/schema.rb', line 45 def mod @mod end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
45 46 47 |
# File 'lib/ffwd/schema.rb', line 45 def source @source end |
Instance Method Details
#support?(support) ⇒ Boolean
52 53 54 55 56 57 58 |
# File 'lib/ffwd/schema.rb', line 52 def support? support support.each do |m| return false unless @mod.respond_to? m end return true end |